Typophile

Insert programming into type file

ptrpp

Hello,
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,
Patrice

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.

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.

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

Some of your advice are actually sounds great.

Captured from web.archive.org on 20 Apr 2015. view this capture