RE: PangoFontDescription to PangoFont



I probably wouldn't do it this way if we were starting from scratch, but
we're converting an old non-GTK system that uses variously-sized fonts and
expected character widths in those fonts to size a lot of text areas, so I
need metric information.  pango_font_get_metrics requires a PangoFont
instead of a PangoFontDescription.  If there's a better way to do that,
please let me know.

-----Original Message-----
From: Jan-Marek Glogowski [mailto:glogow fbihome de]
Sent: Wednesday, September 01, 2004 6:04 PM
To: Boncek, John
Cc: gtk-app-devel-list gnome org
Subject: Re: PangoFontDescription to PangoFont


Hi

AFAIK all PangoFonts depend on a PangoContext, which includes infomation
about the rendering backend (different fonts need different backends like
Xft, Freetype, ...). So you will need a PangoContext anyway and can use
pango_context_load_font(), if you really need a font object.

Pango tries hard to find similar fonts for different backends, so just use
PangoFontDescription.

Do you really need to use a PangoFont?

Jan-Marek



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