googlefonts / Gulzar

Nastaliq font
https://gulzarfont.org
SIL Open Font License 1.1
38 stars 9 forks source link

Shape of U+2026 HORIZONTAL ELLIPSIS in Urdu text #100

Open saadatm opened 1 year ago

saadatm commented 1 year ago

In Gulzar, an interesting bit of OpenType magic is how U+0021 EXCLAMATION MARK and U+003A COLON change their shape based on their adjacent English/Urdu characters:

hb-view Result
hb-view -o exclm-en.png Gulzar-Regular-1.002.ttf "Hi!" exclm-en
hb-view -o exclm-ur.png Gulzar-Regular-1.002.ttf "ہائے!" exclm-ur
hb-view -o colon-en.png Gulzar-Regular-1.002.ttf "a:b" colon-en
hb-view -o colon-ur.png Gulzar-Regular-1.002.ttf "ا:ب" colon-ur

Can we also apply the same magic to U+2026 HORIZONTAL ELLIPSIS too?

hb-view Result
hb-view -o ellipsis-en.png Gulzar-Regular-1.002.ttf "a… b" ellipsis-en
hb-view -o ellipsis-ur.png Gulzar-Regular-1.002.ttf "ا… ب" ellipsis-ur

Currently (as seen above), the ellipsis’ shape remains the same in both English and Urdu text, but it would be nice if, when used in Urdu text, the dots in the ellipsis use the same shape as the dots in the colon or the exclamation mark.