8 Oct 2007 herzi   » (Master)

Using Webkit/GTK+ in Mac OS X

Webkit/GTK+ is a really nice thing already. It still has it's rough edges, but it already works really nicely.

At Imendio, I spent the last 2 weeks on Webkit/GTK+ for Mac OS X. The GTK+ backend for webkit is using FontConfig/FreeType to match fonts and to cache glyphs. We decided that the right way to do this cross-platform is to use Pango for it (not for the real text layouting, but at least for the font management).

In Pango 1.18 we found the APIs that we needed and finally we finished working on »Abstract font management by using Pango«. Some parts are a bit tricky (especially FontPlatformData::isFixed() and pango_font_get_glyph() parts of the patch).

Finally, we were able to take this screenshot:



It's really nice to hack on Webkit, Apple's employees are really quick in reviewing and applying patches. They have a field for patch-reviews ("?" means »please review«, "+" and "-" are review votes for and against a patch). I think having a patch review queue in GNOME's bugzilla would also help a lot to get patches into the packages (of course, the queues would be package-specific, maybe they can appear on the package summary page).

Syndicated 2007-09-21 16:57:56 (Updated 2007-09-21 17:22:00) from Herzis Blog

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!