You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some specific Unicode characters ("\u00Fc", "\u0071", "\u00D8") are not drawn properly in an image file when saving it in Ubuntu Linux. But the same Unicode characters are drawn properly in windows.
Additional information
SkiaSharp version = v2.88.8
Last known good version = None
IDE = Ubuntu Linux (VM)
Code
Replication Steps:
• Create a simple .NET (.NET 8.0) console application with below code.
• Install SkiaSharp (v2.88.8) in the above app.
• Run this application in Ubuntu Linux (VM) terminal using “dotnet run -- proj consoleApp.csproj” command.
intwidth=500;intheight=500;SKImageInfoimageInfo=new SKImageInfo(width, height);using(SKSurfacesurface= SKSurface.Create(imageInfo)){SKCanvascanvas= surface.Canvas;
canvas.Clear(SKColors.White);varbulletPaint=new SKPaint
{Color= SKColors.Black,TextSize=30,IsAntialias=true,Typeface= SKTypeface.FromFamilyName("Wingdings")}floatX=30;floatY=50;// List of Unicode bulletsstring[]bullets={"\u00Fc","\u0071","\u00D8"};// Draw the Unicode bullet
canvas.DrawText(bullets[0], X, Y, bulletPaint);
canvas.DrawText(bullets[1], X,Y+50, bulletPaint);
canvas.DrawText(bullets[2], X,Y+100, bulletPaint);using(SKImageimage= surface.Snapshot())using(SKDatadata= image.Encode(SKEncodedImageFormat.Jpeg,100))using(FileStreamoutputStream=new FileStream("Output.jpg", FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)){
data.SaveTo(outputStream);}}
Expected Behavior
The Unicode character should be drawn properly in Ubuntu Linux as same as Windows.
Actual Behavior
The specific Unicode characters are drawn as rectangle box in Ubuntu Linux.
Version of SkiaSharp
Other (Please indicate in the description)
Last Known Good Version of SkiaSharp
Other (Please indicate in the description)
IDE / Editor
Other (Please indicate in the description)
Platform / Operating System
Linux
Platform / Operating System Version
Ubuntu Linux (VM)
Version : v22.04
Devices
Ubuntu Linux (VM)
Version : v22.04
Relevant Screenshots
Windows Ubuntu Linux
Relevant Log Output
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
If you did it in a linux vm (as opposed to a fully functional daily used linux desktop), the most likely cause is that you have not installed any emoji capable fonts.
Description
Some specific Unicode characters ("\u00Fc", "\u0071", "\u00D8") are not drawn properly in an image file when saving it in Ubuntu Linux. But the same Unicode characters are drawn properly in windows.
Additional information
Code
Replication Steps:
• Create a simple .NET (.NET 8.0) console application with below code.
• Install SkiaSharp (v2.88.8) in the above app.
• Run this application in Ubuntu Linux (VM) terminal using “dotnet run -- proj consoleApp.csproj” command.
Expected Behavior
The Unicode character should be drawn properly in Ubuntu Linux as same as Windows.
Actual Behavior
The specific Unicode characters are drawn as rectangle box in Ubuntu Linux.
Version of SkiaSharp
Other (Please indicate in the description)
Last Known Good Version of SkiaSharp
Other (Please indicate in the description)
IDE / Editor
Other (Please indicate in the description)
Platform / Operating System
Linux
Platform / Operating System Version
Ubuntu Linux (VM)
Version : v22.04
Devices
Ubuntu Linux (VM)
Version : v22.04
Relevant Screenshots
Windows
Ubuntu Linux
Relevant Log Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: