PgCairoFontMap

PangoCairoFontMap is an interface exported by font maps for use with Cairo.

The actual type of the font map will depend on the particular font technology Cairo was compiled to use.

Constructors

this
this(PangoCairoFontMap* pangoCairoFontMap, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this()

Creates a new PangoCairoFontMap object.

this
this(cairo_font_type_t fonttype)

Creates a new PangoCairoFontMap object of the type suitable to be used with cairo font backend of type @fonttype.

Members

Functions

getFontType
cairo_font_type_t getFontType()

Gets the type of Cairo font backend that @fontmap uses.

getPgCairoFontMapStruct
PangoCairoFontMap* getPgCairoFontMapStruct(bool transferOwnership)

Get the main Gtk struct

getResolution
double getResolution()

Gets the resolution for the fontmap.

getScaledFont
ScaledFont getScaledFont()

Gets the cairo_scaled_font_t used by @font. The scaled font can be referenced and kept using cairo_scaled_font_reference().

getStruct
void* getStruct()

the main Gtk struct as a void*

setDefault
void setDefault()

Sets a default PangoCairoFontMap to use with Cairo.

setResolution
void setResolution(double dpi)

Sets the resolution for the fontmap.

Static functions

getDefault
PgFontMap getDefault()

Gets a default PangoCairoFontMap to use with Cairo.

getType
GType getType()

Variables

pangoCairoFontMap
PangoCairoFontMap* pangoCairoFontMap;

the main Gtk struct

Inherited Members

From PgFontMap

pangoFontMap
PangoFontMap* pangoFontMap;

the main Gtk struct

getPgFontMapStruct
PangoFontMap* getPgFontMapStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
changed
void changed()

Forces a change in the context, which will cause any PangoContext using this fontmap to change.

createContext
PgContext createContext()

Creates a PangoContext connected to @fontmap.

getFamily
PgFontFamily getFamily(string name)

Gets a font family by name.

getSerial
uint getSerial()

Returns the current serial number of @fontmap.

listFamilies
void listFamilies(PgFontFamily[] families)

List all families for a fontmap.

loadFont
PgFont loadFont(PgContext context, PgFontDescription desc)

Load the font in the fontmap that is the closest match for @desc.

loadFontset
PgFontset loadFontset(PgContext context, PgFontDescription desc, PgLanguage language)

Load a set of fonts in the fontmap that can be used to render a font matching @desc.

Meta

Since

1.10