notofonts / psalter-pahlavi

Noto Psalter Pahlavi
SIL Open Font License 1.1
2 stars 0 forks source link

Incorrect shaping of Psalter Pahlavi numbers #1

Open dscorbett opened 6 years ago

dscorbett commented 6 years ago

Font

NotoSansPsalterPahlavi-Regular.ttf

Where the font came from, and when

Site: https://github.com/googlei18n/noto-fonts/blob/db5c897c3954ab8dd49bfc3de4f3ef00a7ef6d06/phaseIII_only/hinted/ttf/NotoSansPsalterPahlavi/NotoSansPsalterPahlavi-Regular.ttf Date: 2018-09-23

Font version

Version 2.000; ttfautohint (v1.8.2)

Issue

If a Psalter Pahlavi small number (i.e. 1 to 4) follows the isolated form of a right-joining character and precedes another small number, then it takes the word-internal final form (Xrm), but it should take the word-internal isolated form (Xnm).

This bug exists because the font’s 'rclt' lookup is unnecessarily complicated. It need only contain one rule, with an input class of isolated/final small numbers, a lookahead class of isolated small numbers, and no backtracking class.

Character data

𐮩𐮩𐮩 𐮪𐮪𐮪 𐮫𐮫𐮫 𐮬𐮬𐮬 U+10BA9 PSALTER PAHLAVI NUMBER ONE U+10BAA PSALTER PAHLAVI NUMBER TWO U+10BAB PSALTER PAHLAVI NUMBER THREE U+10BAC PSALTER PAHLAVI NUMBER FOUR

Screenshot

𐮩𐮩𐮩 𐮪𐮪𐮪 𐮫𐮫𐮫 𐮬𐮬𐮬

dscorbett commented 4 months ago

This bug is still present in version 2.003. The 'rclt' lookup is still unnecessarily complicated.