Re: Pango FontDescription -> FontMetrics: HOW?



On Fri, 2007-11-30 at 11:03 +0100, Yannick Barbeaux wrote:
> Thanks for your answer,
> that seemed to work indeed...
> until i changed the font size in my gtk rc file and realized that the
> size of my widget remained unchanged whatever the size of my font is..
> 
> so this solution does not seem to take into account the widget font
> size? 

the layout is created from the widget that is passed in. the font that
the layout uses will be based on the widget's style settings. the call
to Widget::ensure_style() forces the style to be loaded before creating
the layout.



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