Name
pfontmap:LoadFont -- load font
Synopsis
font = pfontmap:LoadFont(context, desc)
Function
Load the font in the fontmap that is the closest match for desc.

This function returns the newly allocated Pango font loaded, or a NULL object if no font matched. You can use pfont:IsNull() to check if a font is NULL.

Inputs
context
the Pango context the font will be used with
desc
a Pango font description describing the font to load
Results
font
the newly allocated Pango font

Show TOC