[cairo-bugs] [Bug 10067] quartz surface does not use device glyph extents

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Mar 15 19:59:48 PDT 2007


http://bugs.freedesktop.org/show_bug.cgi?id=10067


Brian.Ewins at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #9002 is|0                           |1
           obsolete|                            |




------- Comment #12 from Brian.Ewins at gmail.com  2007-03-15 18:59 PST -------
Created an attachment (id=9172)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=9172&action=view)
fix the problem by patching _cairo_atsui_font_text_to_glyph

The answer is really in the last comment. The positions we were calculating
were the same no matter what the ctm scale was; I spent time scratching my head
looking for broken scaling code but the problem was just that the there was
*no* scaling code. Oops.

The patch changes _cairo_atsui_font_text_to_glyph to use the same method as
cairo-scaled-font.c uses to calculate the glyph positions. This isn't using the
real positioning information from
ATSUDirectGetLayoutDataArrayPtrFromTextLayout. I could transform those results,
but this code is good enough, I think - its only hit by the toy api.

Comments?


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the cairo-bugs mailing list