[cairo] Pango<->Cairo question

Behdad Esfahbod behdad at behdad.org
Wed Apr 25 11:51:01 PDT 2007

On Tue, 2007-04-24 at 20:47 -0400, Travis Griggs wrote:
> So I'm trying to integrate Pango here. I got tired of writing text
> layout code :)
> I got the impression that if I had called cairo_select_font_face() and
> cairo_set_font_size(), and then did pango_cairo_create_layout(), the
> layout would pickup a font description that was consistent with what
> had been set in the cr. Thus I could just skip the
> pango_layout_set_font_description() bit. But I'm not seeing that
> happen. It's getting some other font. And definitely a different size.
> Can anyone give me any guidance? Please? Pretty please?

You just said it yourself: set a font description on the layout.  What
is your question?

> I can say that it does indeed draw faster.
> --
> Travis Griggs
> Objologist
> Time and Countertops. They both get used up way too fast.
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://cairographics.org/cgi-bin/mailman/listinfo/cairo

"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