McEs, A Hacker Life
CSS3 font goodness
Here's a nice blogpost from John Dagget of Firefox fame about the upcoming Firefox 4 supporting CSS3 OpenType font-feature support:
Firefox 4: OpenType font feature supportThis is a direct result of the
HarfBuzz code I've been working on for the past year or so. Exciting stuff for the web.
Labels: firefox, harfbuzz, opentype, typography
Pango OpenType Update
All other modules are ported to new OpenType API now. I really hope I've not broken any of them in the way.
In other news, Pango's Arabic module is now
extended to support the
N'Ko script. I believe Pango is the first Unicode rendering system to support N'Ko!
Seems like
my optimization in Pango's line-breaking algorithm introduced
a bug that I hope is fixed now.
Also came across this
hilarious bug titled "My microwave doesn't work any more because of gnome"!
Labels: bug, funny, microwave, n'ko, opentype, pango
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 pango-view tool.
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