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
Note: 📝 the code can run on Linux, just mount a Windows partition and change BASE_DIR accordinglyUPDATE: nope, you really need Windows: https://bugzilla.redhat.com/show_bug.cgi?id=1377049. Try running stat /mnt/windows/Windows/Fonts/msgothic.ttc and see if you get unsupported reparse tag 0x80000017
Humm. This seems to be a bad baseline value in the font. For script hani and baseline tag ideo it has value 0, which is wrong in my understanding. Other fonts I tried had negative values there.
Short of adding a conditional to filter out zero in the code, I don't see a way to fix this.
Hi! It seems that
hb_ot_layout_get_baseline_with_fallback()
is returning wrong baseline values for the MS Gothic font (C:\Windows\Fonts\msgothic.ttc
). We discovered that while investigating an issue with text layout in Pango, see https://discourse.gnome.org/t/when-combining-latin-with-asian-the-latin-glyphs-are-shifted-upwards-on-windows/16010/2.Consider the following sample:
We get the following values:
The first value doesn't seem right : 14745.
Interestingly, if we pass
'Hani'
instead of'hani'
, then the issue doesn't occur anymore:However Pango relies on
hb_ot_tags_from_script_and_language()
to get the language and script tags, and that function returns'hani'
.The text was updated successfully, but these errors were encountered: