Jump to content
Join our community of friends of typography!

Some help with OpenType

Recommended Posts


I'm trying to develop some open source fonts for an Indic language. My font works almost as expected, except that when ligatures formed by GSUB rules combine with certain marks, they break down. One example is

feature blwf { # Below-base Forms
 script orya; # Oriya
    sub or_ta or_halant by or_ta_phalaa;

feature pres { # Pre-base Substitutions
 script orya; # Oriya
    sub or_ta or_ta_phalaa by or_t_ta;

So when I want the glyph "or_t_ta" it forms fine. But when I combine it with "or_reph" or "or_ikaar" marks, the 2nd substitution <pres> is ignored and I get "or_ta + or_ta_phalaa + or_ikaar".

Any ideas why this might be happening? If you want to take a look at my ttf file, it is here https://goo.gl/02CHev

Link to comment
  • 6 years later...
Richard W

I am assuming coldbreeze16 has already had his answer.  For anyone else who comes to this thread looking for an answer, the answer is stunningly simple.  Indic rearrangement occurs between the applications of features blwf and pres, so or_ikaar or or_reph, if present, will be moved to immediately after  or_ta, so if the input was <TA, VIRAMA, TA, SIGN I>, the glyph order will have become <or_ta, or_ikaar, or_ta_phalaa>.  This is all documented at Developing OpenType Fonts for Odia Script.  I see two solutions.  One is to form or_t_ta in feature cjct before rearrangement occurs - I am not sure if the shapers allow that, as I don't program to work with the complex Indic shaping engine - or in feature akhn.  The other is to modify the second lookup to skip non-spacing marks, so that or_ta and or_ta_phalaa will ligate despite the intervening or_ikaar (or or_reph).

  • Like 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Our partners

Get to your apps and creative work. Explore curated inspiration, livestream learning, tutorials, and creative challenges.
Discover the fonts from the Germany foundry FDI Type. A brand of Schriftkontor Ralf Herrmann.
The largest selection of professional fonts for any project. Over 130,000 available fonts, and counting.
Discover the Best Deals for Freelance Designers.
FDI Farbmeister: simulate letterpress letters with this set of color bitmap fonts …
  • Create New...

🍪 Important Information:

This website uses functional cookies.