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
I am using SkiaSharp library to render 2D elements for my app. The below code renders arabic characters correctly on Windows platform but same code does not work for browser and it renders boxes at the place of arabic character.
s = "ف ف ف"
var tf = SKFontManager.Default.MatchCharacter(s[0]);
using (var paint = new SKPaint())
{
paint.TextSize = 32.0f;
paint.IsAntialias = true;
paint.Color = new SKColor(255,255,255);
paint.IsStroke = false;
paint.Typeface = tf;
paint.TextAlign = SKTextAlign.Center;
SystemGraphics.Canvas.DrawText(s, 0,10, paint);
}
Output on windows:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using SkiaSharp library to render 2D elements for my app. The below code renders arabic characters correctly on Windows platform but same code does not work for browser and it renders boxes at the place of arabic character.
s = "ف ف ف"

var tf = SKFontManager.Default.MatchCharacter(s[0]);
using (var paint = new SKPaint())
{
paint.TextSize = 32.0f;
paint.IsAntialias = true;
paint.Color = new SKColor(255,255,255);
paint.IsStroke = false;
paint.Typeface = tf;
paint.TextAlign = SKTextAlign.Center;
SystemGraphics.Canvas.DrawText(s, 0,10, paint);
}
Output on windows:
output on chrome browser:
please help me how to solve this issue.
Beta Was this translation helpful? Give feedback.
All reactions