Re: text size in pango

Thanks Owen!
Thanks, thanks, thanks!
Okay, I was tired yesterday night, and I searched a lot, but this I must
have overseen.

Am Mit, 2003-05-07 um 15.48 schrieb Owen Taylor:

> Try instead:
>  pango_layout_get_pixel_size (layout, &width, NULL);
> And remember to g_object_unref() the layout.

Its unrefed in my function anyway.

It works (nearly) fine with this, thanks.
The only issue is that some unicode fonts are not calculated correctly.
See the labels on the map:
Cyrilic is fine, the other give a too small value.

Fritz "der mit dem Linux tanzt" Ganter
 Key fingerprint = 555A DDBB 3985 16FF CD41  2031 C485 1783 BF34 728F

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