pravins / lohit

Lohit fonts family project to supporting Indian scripts.
Other
39 stars 11 forks source link

Lohit Telugu: problematic font metrics #91

Open santhoshtr opened 2 years ago

santhoshtr commented 2 years ago

Lohit Telugu font is very problematic with its metrics. It has an Ascender 1617 units which exceed the total 1024 em units defined. And the x-height where the most of glyph strokes are supposed to occupy is just 500 units, leaving too much empty space above and below the em square.

image

The effect can be seen by comparing same text rendering by Noto and Lohit. First one is Noto, Second is Lohit telugu

image

image

This can create many issues with content layouting, text selection. For example, selecting some text will clip the previous lines as shown here.

image

Here is a ticket from Wikimedia bug tracker https://phabricator.wikimedia.org/T262102 with similar issue