SkiaSharp
SkiaSharp copied to clipboard
How to get the same width for kerning font as like GDI+ via SkiaSharp?
We have requirement to measure a string with required font by using SkiaSharp.
Here, when we try to measure the Kerning applied text "Test document for DOCX to PDF conversion" with "Calibri Light" font.
Attached the measuring code example (UsingGDI.zip) of using the System.Drawing.Graphics.MeasureString(), it return the exact width of the text as "482.918" point as expected.
But, we are willing to use SkiaSharp library since it supported in multiple platforms. When we measure the same text using SkiaSharp (UsingSkiaSharp.zip) return the "488.5918" point.
Could you please suggest us a solution to get the same width as in Graphics.MeasureString() via SkiaSharp.
Having the same problem. GDI+ is still performing better than Skia in most cases for us.