>From: Havoc Pennington <[EMAIL PROTECTED]>
>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
_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list