Re: Fonts



On Tue, 2005-08-02 at 00:16 +1000, Russell Shaw wrote:
Hi,
Does all text in gtk/pango get sent to the X server as ascii, or are bitmaps
sent too? If sent as ascii, is it 7-bit, 8-bit, or something longer?
Does gtk have any control over what renders the fonts at the X server?
Is XDrawString used?

When rendering using Xft or (for in GTK+-2.7, Cairo), characters are 
rendered client side and sent to the server as images. Then a 
RenderCompositeGlyphs request is made to draw those images to the
screen. It looks conceptually like:

Using glyphset 1432413:
 draw glyph #3 at 40,10
 draw glyph #4 at 50,10
 [...]

Regards,
                                                Owen



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