FontDescription

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

A PangoFontDescription describes a font in an implementation-independent manner.

PangoFontDescription structures are used both to list what fonts are available on the system and also for specifying the characteristics of a font to load.

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
val pangoFontDescriptionPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
fun betterMatch(oldMatch: FontDescription? = null, newMatch: FontDescription): Boolean

Determines if the style attributes of @new_match are a closer match for @desc than those of @old_match are, or if @old_match is null, determines if @new_match is a match at all.

Link copied to clipboard

Make a copy of a PangoFontDescription.

Link copied to clipboard

Make a copy of a PangoFontDescription, but don't duplicate allocated fields.

Link copied to clipboard

Compares two font descriptions for equality.

Link copied to clipboard
fun free()

Frees a font description.

Link copied to clipboard

Gets the family name field of a font description.

Link copied to clipboard

Gets the gravity field of a font description.

Link copied to clipboard

Determines which fields in a font description have been set.

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

Gets the size field of a font description.

Link copied to clipboard

Determines whether the size of the font is in points (not absolute) or device units (absolute).

Link copied to clipboard

Gets the stretch field of a font description.

Link copied to clipboard

Gets the style field of a PangoFontDescription.

Link copied to clipboard

Gets the variant field of a PangoFontDescription.

Link copied to clipboard

Gets the variations field of a font description.

Link copied to clipboard

Gets the weight field of a font description.

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

Computes a hash of a PangoFontDescription structure.

Link copied to clipboard
fun merge(descToMerge: FontDescription? = null, replaceExisting: Boolean)

Merges the fields that are set in @desc_to_merge into the fields in

Link copied to clipboard
fun mergeStatic(descToMerge: FontDescription, replaceExisting: Boolean)

Merges the fields that are set in @desc_to_merge into the fields in

Link copied to clipboard
fun setAbsoluteSize(size: <Error class: unknown class>)

Sets the size field of a font description, in device units.

Link copied to clipboard
fun setFamily(family: String)

Sets the family name field of a font description.

Link copied to clipboard
fun setFamilyStatic(family: String)

Sets the family name field of a font description, without copying the string.

Link copied to clipboard
fun setGravity(gravity: Gravity)

Sets the gravity field of a font description.

Link copied to clipboard
fun setSize(size: <Error class: unknown class>)

Sets the size field of a font description in fractional points.

Link copied to clipboard
fun setStretch(stretch: Stretch)

Sets the stretch field of a font description.

Link copied to clipboard
fun setStyle(style: Style)

Sets the style field of a PangoFontDescription.

Link copied to clipboard
fun setVariant(variant: Variant)

Sets the variant field of a font description.

Link copied to clipboard
fun setVariations(variations: String? = null)

Sets the variations field of a font description.

Link copied to clipboard
fun setVariationsStatic(variations: String)

Sets the variations field of a font description.

Link copied to clipboard
fun setWeight(weight: Weight)

Sets the weight field of a font description.

Link copied to clipboard

Creates a filename representation of a font description.

Link copied to clipboard
open override fun toString(): String

Creates a string representation of a font description.

Link copied to clipboard
fun unsetFields(toUnset: FontMask)

Unsets some of the fields in a PangoFontDescription.