Re: Pango on OSX: patches to use CoreText



On Feb 15, 2010, at 9:37 AM, Jerome Lambourg wrote:

> Hello List,
> 
> First of all, although I know a bit on gtk programming. I've never really looked at the underlying libraries (such as Pango), but as I switched to Mac recently, I came through some issues concerning the native gtk (in particular invalid fonts).
> 
> After having a look at those issues, it seems to come from the fact that cairo is using CoreText functionalities, while Pango was still using ATSU. As the glyphs are not the same, strange characters get printed.
> 
> As a result, I modified pango to make use of CoreText. Attached is the patch. It seems to be working pretty fine so far, feel of course free to comment/complete the patch !
> 
> Note: This patch is based on pango 1.26.2
> 

Please read Kristian Rietveld's commit message in http://git.gnome.org/browse/pango/commit/?id=0f06d7758bc37a4942342d2c17a88944cbc88adb, which reverted (about a week after 1.26.2 was released) the other CoreText changes upon which your patch relies. 

Note also in http://cgit.freedesktop.org/cairo/tree/src/cairo-quartz-font.c all of the effort expended to ensure compatibility with OSX 10.4. Any Pango CoreText implementation will require similar effort.

Regards,
John Ralls



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]