notofonts / tamil

Noto Tamil
SIL Open Font License 1.1
4 stars 0 forks source link

Noto Sans Tamil UI baseline alignment issue in the Android 13 environment #13

Closed chrissimpkins closed 1 year ago

chrissimpkins commented 2 years ago

In Android 13, the text rendering for Tamil is broken in several apps (Settings, Gboard, Google Keep, Google Translate, Reddit, Spotify, etc.). The issue is that some letters are rendered slightly higher than others, making it seem like it wasn't written straight. A word which exhibits this is அளிக்கப்பட்ட. The letters க் and க, ப் and ப, and ட் and ட all should render with the same baseline, but they do not. Instead, letters with the dot on top (combining character: U+0BCD TAMIL SIGN VIRAMA) are rendered slightly higher than the letters without.

We can confirm this with the Noto Sans Tamil UI v2.001 build in an Android 13 test environment.

1664455782

I cannot reproduce it with the unhinted Noto Sans Tamil v2.003 VF build (note: non-UI build, not the UI build used in the bug report above) found in the release https://github.com/notofonts/tamil/releases/tag/NotoSansTamil-v2.003

B23nk266TzaAvom
simoncozens commented 2 years ago

This turns out to be a bug in the (rather hacky) make-ui-vf.py script which generated variable UI fonts from variable non-UI fonts; it applied a translation transformation to all glyphs - including component glyphs, whose components already had the same translation applied to them, so they were being translated twice.

chrissimpkins commented 1 year ago

Thanks Simon. The fixed file was pushed to Android Text eng. Awaiting confirmation of the fix.

simoncozens commented 1 year ago

Are we still waiting?

chrissimpkins commented 1 year ago

Sorry, this was confirmed. Thanks Simon

simoncozens commented 1 year ago

The version of UI font included in this release has the fix.