FontMapImpl

class FontMapImpl(pointer: <Error class: unknown class><<Error class: unknown class>>) : FontMap

The FontMapImpl type represents a native instance of the abstract FontMap class.

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Creates a new instance of FontMap for the provided CPointer.

Properties

Link copied to clipboard
open val gioListModelPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val pangoFontMapPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun changed()

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

Link copied to clipboard

Creates a PangoContext connected to @fontmap.

Link copied to clipboard
open fun getFamily(name: String): FontFamily

Gets a font family by name.

Link copied to clipboard
open fun getSerial(): <Error class: unknown class>

Returns the current serial number of @fontmap.

Link copied to clipboard
open fun loadFont(context: Context, desc: FontDescription): Font?

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

Link copied to clipboard
open fun loadFontset(context: Context, desc: FontDescription, language: Language): Fontset?

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

Link copied to clipboard
open fun reloadFont(font: Font, scale: <Error class: unknown class>, context: Context? = null, variations: String? = null): Font

Returns a new font that is like @font, except that its size is multiplied by @scale, its backend-dependent configuration (e.g. cairo font options) is replaced by the one in @context, and its variations are replaced by @variations.