Insert programming into type file

ptrpp's picture

First of all sorry for my English, I'll try to be clear.

I'm looking for a way to insert code (programme) into a type file (into a .otf or .ttf file).
Some language I could use to write algorythm which could substitutes glyphs to others (based on complex rules, algorythmes)

I can not use ligatures because the substitution rules are far too complex.
If I would like to define them one by one I'll have to do it for every words.

Which language (C, C++, Python...) ?
Which soft ?

Thank you very much,

Té Rowan's picture

None of them. The closest things to programs in a font is the TrueType hinting/instructing code. Everything else is done with data tables compiled from a feature description language.

Theunis de Jong's picture

Anything more complicated than the glyph-to-glyph translations offered by OpenType is usually done in a text layout engine. Examples are: Uniscribe (Microsoft Windows), Core Text (Apple), Harfbuzz/Pango (open source), and LaTEX.

Also, software for special purposes such as equations (LaTEX again; MathType) and music (Guido) use additional routines, not linked to data available from font files only.

Crissov's picture

You could write a program in the language of your choice to generate feature files (in AFDKO, VOLT or other syntax).

simonemartijn's picture

Some of your advice are actually sounds great.

Syndicate content Syndicate content