Vijay Ramachandran
Vijay Ramachandran
Could you please suggest me the best alternative overload for below method, as the suggested [SKTypeface.FromStream()](https://docs.microsoft.com/en-us/dotnet/api/skiasharp.sktypeface.fromstream?view=skiasharp-1.68.0#SkiaSharp_SKTypeface_FromStream_System_IO_Stream_System_Int32_) overload doesn't have option to specify the SKFontStyleWeight, SKFontStyleWidth and SKFontStyleSlant? `SKTypeface.FromFamilyName("Arial", SKFontStyleWeight.Bold, SKFontStyleWidth.Normal,...
SKTypeface.FromStream() also causes the same problem in Linux OS. SKPaint paint = new SKPaint(); paint.TextEncoding = SKTextEncoding.Utf8; paint.IsAntialias = true; FileStream fStream = new FileStream(@"arialbd.ttf", FileMode.Open, FileAccess.Read); paint.Typeface = SKTypeface.FromStream(fStream);//SKTypeface.FromFamilyName("Arial",...
The default value of [paint.SubpixelText](https://docs.microsoft.com/en-us/dotnet/api/skiasharp.skpaint.subpixeltext?view=skiasharp-1.68.0#SkiaSharp_SKPaint_SubpixelText) is false in both Windows and Linux OS. As per your suggestion, if [paint.SubpixelText](https://docs.microsoft.com/en-us/dotnet/api/skiasharp.skpaint.subpixeltext?view=skiasharp-1.68.0#SkiaSharp_SKPaint_SubpixelText) property was set as true, then width of the text size...
Thanks @Gillibald . I will do the necessary changes and update you the confirmation once after ensuring the complete testing.
@Gillibald - Although the provided suggestions resolved the above problems. I have found that the same problem exist for another text. Please find the example code to reproduce the issue....
@Gillibald - Could you please provide solution for this issue?
I have attached the fonts file [wingding.zip](https://github.com/mono/SkiaSharp/files/3211327/wingding.zip). Even if i use Utf16 encoding the same issue still exists.