Font.fromDescription

Warning gdk_font_from_description is deprecated and should not be used in newly-written code. Load a GdkFont based on a Pango font description. This font will only be an approximation of the Pango font, and internationalization will not be handled correctly. This function should only be used for legacy code that cannot be easily converted to use Pango. Using Pango directly will produce better results.

class Font
static
fromDescription

Parameters

fontDesc PgFontDescription

a PangoFontDescription.

Return Value

Type: Font

the newly loaded font, or NULL if the font cannot be loaded.

Meta