Forum How do I...?

How to use special glyphs (font-feature-settings)

ledestin
Hi,

I'm trying to make special font glyphs to work. Example attached.

That "s" at the end is fancy, and it appears like that only when enabled with `include font-feature-settings("kern", "liga", "pnum")` and when it has a space after it.

I've tried adding `font-variant: prince-opentype(kern, liga, pnum)`, but it didn't help.

Is it possible to do? If yes, how?

Thank you.
  1. headings.png181.2 kB
    Example font
mikeday
Is the fancy s glyph produced as a ligature with the following space character, or is there some other OpenType substitution feature being used?

Prince applies the liga feature by default, but does not look up space glyphs in fonts.
JonathanMagus
To substitute an alternative letter form at the end of a word, first create it as a non-active single substitution, then activate this as a contextual alternative. Do this in the font and call it with Prince using 'font-variant: prince-opentype(calt)'.

It will only occur when the conditions you specify are met.