Re: PangoFontMetrics
- From: "Venkat Ramakrishnan" <venkat_ramakrishnan hotmail com>
- To: hp redhat com
- Cc: gtk-list gnome org
- Subject: Re: PangoFontMetrics
- Date: Sat, 09 Mar 2002 08:37:31 +0000
From: Havoc Pennington <hp redhat com>
Rather than fooling with font metrics, you probably just want to call
pango_layout_get_pixel_extents().
If you need a PangoLanguage gtk_get_default_language() is the simplest
way.
Havoc
Thanks a lot for the help . I am using pango_layout_get_extents()
but I think using the above call I can get the width and height
of the string I am using but not the ascent and descent .
Please correct me if I am wrong but ascent and descent is different
than the height ...and to get the ascent and descent i got to use
the PangoMetrics (is it??).
I have one more doubt ..how does the Layout know about the font being used
, because the height/width etc for the string will depend
on the font being used. I did a pango_load_font ..is that correct ??
Thanks
Venkat
"Yes There are two ways you can go by , but in the long run
There is still time to change the road you are on !!!"
"Stairway to heaven"
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]