Re: How to create a PangoXFont object



On Thu, 2006-08-24 at 01:16 -0400, Uma Shankar Ladha wrote:
> Hi,
> 
> How to create a PangoXFont object using api's only from libpango.
> pango_x_font_new() is used to create this object, but how is this api
> invoked from libpango. 

You need to create a PangoXFontMap yourself, and that knows how to
create PangoXFonts.  Now the question is why do you need the PangoX
backend?  That's really deprecated.

> We have two object, PangoFont and PangoXFont. Is while creating
> PangoFont, the library checks on what backend we are and respectively
> creates either PangoXFont/PangoCairoFont/PangoWin32Font. 

It's not implemented like that, no.  It all depends on the fontmap you
are using.  You choose your fontmap, and that generates a font for the
same backend that the fontmap belongs too.

For sample application code, check out examples/pango-view in Pango
source tree.

> Thanks
> Umesh
> "Only gud thing about the stone i encounter in my path is,when i cross
> them they become my milestones" 


-- 
behdad
http://behdad.org/

"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
        -- Dan Bern, "New American Language"




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