Ordinals 1st 2nd 3rd etc as OpenType feature
Posted: Mon Feb 07, 2022 8:04 am
Hi there
I’m quite a newbie when it comes to typography and type design but I have just finished my first font, and I’m just fine tuning kerning and open type features etc.
I want to substitute the “nd” of 2nd with a single glyph that is called “small_nd” which is way up in the private use register (E679) as suggested on another forum. I want to do this for 1st, 2nd, 3rd and 4th - replacing the suffix with a single glyph for each iteration that I have designed for the purpose. What is the easiest way of doing this, with some example code, as I’m having a real hard time with it and would be very grateful.
I wish for the nd, th, etc only to be substituted with their single glyph counterparts in the context of coming after a numeral.
I hope this all makes sense and I hope someone can assist!
I’m quite a newbie when it comes to typography and type design but I have just finished my first font, and I’m just fine tuning kerning and open type features etc.
I want to substitute the “nd” of 2nd with a single glyph that is called “small_nd” which is way up in the private use register (E679) as suggested on another forum. I want to do this for 1st, 2nd, 3rd and 4th - replacing the suffix with a single glyph for each iteration that I have designed for the purpose. What is the easiest way of doing this, with some example code, as I’m having a real hard time with it and would be very grateful.
I wish for the nd, th, etc only to be substituted with their single glyph counterparts in the context of coming after a numeral.
I hope this all makes sense and I hope someone can assist!