Context

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

A PangoContext stores global information used to control the itemization process.

The information stored by PangoContext includes the fontmap used to look up fonts, and default values such as the default language, default gravity, or default font.

To obtain a PangoContext, use method@Pango.FontMap.create_context.

Skipped during bindings generation

  • parameter families: families: Out parameter is not supported

Constructors

Link copied to clipboard
constructor()

Creates a new PangoContext initialized to default values.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val pangoContextPointer: <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 PangoLayout using this context to re-layout.

Link copied to clipboard
open fun getBaseDir(): Direction

Retrieves the base direction for the context.

Link copied to clipboard

Retrieves the base gravity for the context.

Link copied to clipboard

Retrieve the default font description for the context.

Link copied to clipboard
open fun getFontMap(): FontMap?

Gets the PangoFontMap used to look up fonts for this context.

Link copied to clipboard
open fun getGravity(): Gravity

Retrieves the gravity for the context.

Link copied to clipboard

Retrieves the gravity hint for the context.

Link copied to clipboard
open fun getLanguage(): Language

Retrieves the global language tag for the context.

Link copied to clipboard
open fun getMatrix(): Matrix?

Gets the transformation matrix that will be applied when rendering with this context.

Link copied to clipboard
open fun getMetrics(desc: FontDescription? = null, language: Language? = null): FontMetrics

Get overall metric information for a particular font description.

Link copied to clipboard

Returns whether font rendering with this context should round glyph positions and widths.

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

Returns the current serial number of @context.

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

Loads the font in one of the fontmaps in the context that is the closest match for @desc.

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

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

Link copied to clipboard
open fun setBaseDir(direction: Direction)

Sets the base direction for the context.

Link copied to clipboard
open fun setBaseGravity(gravity: Gravity)

Sets the base gravity for the context.

Link copied to clipboard
open fun setFontDescription(desc: FontDescription? = null)

Set the default font description for the context

Link copied to clipboard
open fun setFontMap(fontMap: FontMap? = null)

Sets the font map to be searched when fonts are looked-up in this context.

Link copied to clipboard
open fun setGravityHint(hint: GravityHint)

Sets the gravity hint for the context.

Link copied to clipboard
open fun setLanguage(language: Language? = null)

Sets the global language tag for the context.

Link copied to clipboard
open fun setMatrix(matrix: Matrix? = null)

Sets the transformation matrix that will be applied when rendering with this context.

Link copied to clipboard
open fun setRoundGlyphPositions(roundPositions: Boolean)

Sets whether font rendering with this context should round glyph positions and widths to integral positions, in device units.