Re: How can I get PangoFontMetrics for a specified font family and font size
- From: Behdad Esfahbod <behdad behdad org>
- To: n179911 <n179911 gmail com>
- Cc: gtk-i18n-list gnome org
- Subject: Re: How can I get PangoFontMetrics for a specified font family and font size
- Date: Wed, 10 Mar 2010 20:56:26 -0500
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]