FontImpl

class FontImpl(pointer: <Error class: unknown class><<Error class: unknown class>>) : Font

The FontImpl type represents a native instance of the abstract Font class.

Constructors

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

Creates a new instance of Font for the provided CPointer.

Properties

Link copied to clipboard
val pangoFontPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard

Returns a description of the font, with font size set in points.

Link copied to clipboard

Returns a description of the font, with absolute font size set in device units.

Link copied to clipboard
open fun getCoverage(language: Language): Coverage

Computes the coverage map for a given font and language tag.

Link copied to clipboard
open fun getFace(): FontFace

Gets the PangoFontFace to which @font belongs.

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

Gets the font map for which the font was created.

Link copied to clipboard
open fun getGlyphExtents(glyph: <Error class: unknown class>, inkRect: Rectangle?, logicalRect: Rectangle?)

Gets the logical and ink extents of a glyph within a font.

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

Gets overall metric information for a font.

Link copied to clipboard
open fun hasChar(wc: <Error class: unknown class>): Boolean

Returns whether the font provides a glyph for this character.

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

Serializes the @font in a way that can be uniquely identified.