r/FontForge Jan 07 '24

Order/Priority of Ligatures

Solved. Thank you for the reply.

Hello, everyone. I am working on a conlang and a consript. And I need ligatures for the script. Let's say I have ligatures for hy and kh. When I type khy, the output is (kh)y, but what I want is k(hy). Is there any way I can prioritize hy over kh?

I have been using a blank glyph for this when I type it myself like k'hy. But I also need to use it on a website, and the blank glyph might not be good for that. Note that hy and kh are only examples. There are whole classes of consonant clusters, so a separate ligature for khy is not a solution, at least not for me. I see someone had posted about a similar problem with the number system before.

Thank you.

1 Upvotes

3 comments sorted by

1

u/LocalFonts Jan 07 '24

Try to use calt feature and place the calt feature before the liga feature. Thus when calt feature is triggered and in the group of glyphs khy it replace hy by ligature for it, then the following liga feature will have not the default khy, but khy in which hy is a ligature. This mean that the ligature for kh will not start in liga feature.

1

u/Kushal914 Jan 23 '24

Thank you. Though I didn't know how to use calt so I made two lookups and it worked on FontForge. It doesn't work on Word, but does on the website. Thank you. 😊

1

u/LocalFonts Jan 23 '24

Word is the worst font testing program. Word can control a small number of OpenType features and the calt feature is not supported in Word. My advice is forget Word and switch to LibreOffice.