Re: proper way to get cairo font width

2006-09-19 Thread Tommi Sakari Uimonen
> Hi Tommi, Hi Stefan :) >> Hello. What is the best way to query font width from cairo, in case that I >> want to set size_hint for the widget that is drawing with that font? >> > would it help to construcz PangoLayouts and use pango_layout_get_extents(). I think I started some experiments alrea

Re: proper way to get cairo font width

2006-09-19 Thread Stefan Kost
Hi Tommi, Tommi Sakari Uimonen wrote: > Hello. What is the best way to query font width from cairo, in case that I > want to set size_hint for the widget that is drawing with that font? > > Currently I'm creating a cairo for some existing widget and set there the > desired font and query the wid

proper way to get cairo font width

2006-09-18 Thread Tommi Sakari Uimonen
Hello. What is the best way to query font width from cairo, in case that I want to set size_hint for the widget that is drawing with that font? Currently I'm creating a cairo for some existing widget and set there the desired font and query the width from text_extents_t struct, but it seems a b