SkiaSharp: [BUG] Ascent value is changed while compare in Windows and Linux Docker environment
Description
I have checked ascent value Calibri font in Windows environment is 10.9 pt and then checked ascent value in Linux Docker environment is 9 pt. Well, the difference is 1.9 pt and I have checked with lastest skiasharp version but the issue is not resolved. Kindly let me know how to get the same ascent value for both Windows and Linux Docker environment.
Code
SKPaint sKPaint = new SKPaint();
sKPaint.Typeface = SKTypeface.FromFamilyName("Calibri", SKFontStyleWeight.Normal, SKFontStyleWidth.Normal, SKFontStyleSlant.Upright);
System.Diagnostics.Debug.WriteLine(sKPaint.FontMetrics.Ascent);
Expected Behavior
10.9
Actual Behavior
9
Basic Information
- Version with issue: 1.59.3
- IDE: Visual Studio 2019
- Platform Target Frameworks: .NET Core 3.0
- Windows OS: Linux Docker
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (8 by maintainers)
Just use
HarfBuzzSharp
and you get consistent results