Re: How to start using Pango?
- From: Jürgen Herz <juergen jherz redirectme net>
- To: gtk-i18n-list gnome org
- Subject: Re: How to start using Pango?
- Date: Mon, 12 Mar 2007 00:29:48 +0100
Owen Taylor wrote:
>> If I instead use the commented out part to paint to the surface, it
>> succeeds. Both are using the same fontDesc so it can't be that bad. What
>> am I overlooking?
>
> Well, I'm not sure it's the *only* thing wrong with the above, but the
> obvious problem is that you can't use fonts from a PangoFT2Fontmap with
> a cairo surface.
Uh not?
But now you say it, I see that none fontmap is set for the cairo_t at
all - regardless if pango_cairo_show_layout() or
pango_cairo_show_glyph_string() is used. I guess it's pure coincidence
it works with the latter in my code.
> You also, as documented, need to call pango_cairo_update_context() to
> set the appropriate options on the context for the cairo_t that you are
> rendering to.
In that case yes, I see.
> If you don't mind me asking... what's the big picture thing you are
> trying to accomplish? Why are you looking to avoid PangoLayout?
Nothing productive. I only wanted to play with it in order to get used
to pango. In this case I wanted to be be able to call
pango_ft2_font_get_kerning() on a PangoGlyphString.
Thanks,
J�
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]