liberationfonts / liberation-fonts

The Liberation(tm) Fonts is a font family which aims at metric compatibility with Arial, Times New Roman, and Courier New.
Other
439 stars 21 forks source link

`OS/2.yStrikeoutPosition` is too low #58

Closed khaledhosny closed 1 month ago

khaledhosny commented 1 year ago

Describe the bug

The next version of LibreOffice will use the strikeout size and position provided by the fonts in the OS/2 table when drawing strikeout line. The offset values provided by liberation fonts seem to be too low, and at low resolution the strikeout position is essentially on the baseline. I think the position in the font is calculated from the bottom of the strikeout stroke, but the spec states that it should be from the top.

To Reproduce See the test document and screenshots in https://bugs.documentfoundation.org/show_bug.cgi?id=152267

Expected behavior The strikeout stroke should be at the same position as the em-dash or somwhat close to oy

Screenshots Strikeout compared to em-dash:

image

Desktop (please complete the following information):

khaledhosny commented 1 year ago

This seems to actually affect Liberation Serif Regular most, in other fonts the value seems to be OK.