[cairo] show_glyphs function of FT backend

Behdad Esfahbod behdad at behdad.org
Sat Apr 21 23:56:27 PDT 2007


On Sat, 2007-04-21 at 14:11 -0400, Peter Weilbacher (Mozilla) wrote:
> Peter Weilbacher (Mozilla) wrote:
> 
> > I recently noticed[1] that the show_glyphs function was removed
> > from the FT backend some time ago. I guess if there were postings
> > to this list about it, I missed them and I am not experienced
> > enough with git to find out why it was removed. Can somebody
> > give me a hint?
> 
> Hmm, just clicking around on gitweb.freedesktop.org I found by myself
> that already commit b0c58593b30c1fa085b1e7c8e4897da623b8686d of
> 31 Aug 2005 removed that capability from cairo-ft-font.c (and instead
> moved it to cairo-scaled-font.c). Only the checkin in December removed
> the function itself. But I don't understand which function is supposed
> to handle a cairo_show_glyphs() call on OS/2. Do we need to implement
> the show_glyphs function in cairo-os2-surface.c? But then we would have
> to hardcode the font(-backend) specific stuff in there, too?! Or do
> we need to implement cairo-os2-font.c that then uses most of the FT
> backend code and additionally implements show_glyphs?

No, you shouldn't have to implement that function.  As you noted, there
is fallback code in cairo-scaled-font.c that handles show_glyphs for
backends that don't support it.


> I guess you notice that I understand too little of the overall cairo
> design... Perhaps I should first work on a minimal testcase, to better
> debug this stuff.
> 
>    Peter.
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://cairographics.org/cgi-bin/mailman/listinfo/cairo
-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759





More information about the cairo mailing list