Advanced OpenType Features in Pango
Last week I worked on bringing Pango's OpenType engine into shape. Something that has been long overdue. Not anymore.
Pango can now select arbitrary OpenType script and language systems, and in near future arbitrary OpenType features too. The basic, arabic, and syriac modules are ported to use these features. More modules to follow.
Finishing off that feature is addition of another one, that pango will read env vars PANGO_LANGUAGE or LANGUAGE
and use that for making better guesses to tag runs of text with languages.
First window is rendering of Pango's test-mixed.txt using the command line
Second window is the same, but with env var PANGO_LANGUAGE="en:ur". As you can notice, an Arabic font more suitable in style for Urdu is selected instead of my default Persian fonts.
Third window is vertical rendering of the same text. If you look at the last, Japanese, line, in the vertical window, the brackets around the text are correctly rotated, unlike previous versions of Pango.
This and previous works are all in Pango 1.17.0.
Labels: opentype, pango