Name
pango.FontMap -- create font map
Synopsis
handle = pango.FontMap([fonttype])
Function
Creates a new fontmap object.

A fontmap is used to cache information about available fonts, and holds certain global parameters such as the resolution. In most cases, you can use pango.GetDefaultFontMap() instead.

Note that the type of the returned object will depend on the particular font backend Cairo was compiled to use; alternatively, you can also pass the optional fonttype argument to explicitly specify a backend to use. See cfontface:GetType() for a list of font types.

This function returns the newly allocated Pango font map, which should be freed with pfontmap:Free().

Inputs
fonttype
optional: the Cairo font type to use
Results
handle
the newly allocated Pango font map

Show TOC