FontMap

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

A PangoFontMap represents the set of fonts available for a particular rendering system.

This is a virtual object with implementations being specific to particular rendering systems.

Skipped during bindings generation

  • parameter families: families: Out parameter is not supported

  • method item-type: Property has no getter nor setter

  • method n-items: Property has no getter nor setter

Constructors

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

Types

Link copied to clipboard
object Companion

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.