Name
pcontext:LoadFont -- load font
Synopsis
font = pcontext:LoadFont(desc)
Function
Loads the font in one of the fontmaps in the context that is the closest match for the Pango font description passed in desc.

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

Inputs
desc
a Pango font description describing the font to load
Results
font
the newly allocated Pango font

Show TOC