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
(Using libgdiplus built from main with Pango as backend)
For some fonts the vertical metric "line spacing" does not match between libgdiplus and GDI+. One example is Roboto Regular (which can be retrieved here: https://fonts.google.com/specimen/Roboto).
On Windows GDI+ reports the following metrics:
Ascent: 1946
Descent: 512
LineSpacing: 2458
On Linux libgdiplus reports the following metrics (for the same .ttf file):
Ascent: 1946
Descent: 512
LineSpacing: 2400
The reason for this seems to be that line spacing is set using ascender + descender + gap before ascender and descender are fully determined. Setting it afterwards results in the expected metrics:
(Using libgdiplus built from main with Pango as backend)
For some fonts the vertical metric "line spacing" does not match between libgdiplus and GDI+. One example is Roboto Regular (which can be retrieved here: https://fonts.google.com/specimen/Roboto).
On Windows GDI+ reports the following metrics:
Ascent: 1946
Descent: 512
LineSpacing: 2458
On Linux libgdiplus reports the following metrics (for the same .ttf file):
Ascent: 1946
Descent: 512
LineSpacing: 2400
The reason for this seems to be that line spacing is set using ascender + descender + gap before ascender and descender are fully determined. Setting it afterwards results in the expected metrics:
The text was updated successfully, but these errors were encountered: