Re: How can I get PangoFontMetrics for a specified font family and font size



On 03/10/2010 05:47 PM, n179911 wrote:
> Hi,
> 
> In pango, how can I get PangoFontMetrics for a specified font family
> and font size?
> 
> Font http://library.gnome.org/devel/pango/unstable/pango-Fonts.html#PangoFontDescription
> 
> I think I can create a PangoFontDescription using
> pango_font_description_new and then set the family and size of the
> PangoFontDescription.
> 
> But from then on, how can I construct a PangoFont pointer so that I can call

You need to load a font using pango_context_load_font() or other API.

behdad


> PangoFontMetrics *  pango_font_get_metrics              (PangoFont *font,
>                                                          PangoLanguage
> *language);
> 
> Thank you.


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