GlyphString

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

A PangoGlyphString is used to store strings of glyphs with geometry and visual attribute information.

The storage for the glyph information is owned by the structure which simplifies memory management.

Skipped during bindings generation

  • parameter logical_widths: Array parameter of type gint is not supported

  • parameter x_pos: x_pos: Out parameter is not supported

  • parameter x_pos: x_pos: Out parameter is not supported

  • parameter index_: index_: Out parameter is not supported

  • field glyphs: Fields with arrays are not supported

  • field log_clusters: Unsupported pointer to primitive type

  • field space: Record field space is private

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

number of glyphs in this glyph string

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

Functions

Link copied to clipboard

Copy a glyph string and associated storage.

Link copied to clipboard
fun extents(font: Font, inkRect: Rectangle?, logicalRect: Rectangle?)

Compute the logical and ink extents of a glyph string.

Link copied to clipboard
fun extentsRange(start: Int, end: Int, font: Font, inkRect: Rectangle?, logicalRect: Rectangle?)

Computes the extents of a sub-portion of a glyph string.

Link copied to clipboard
fun free()

Free a glyph string and associated storage.

Link copied to clipboard
fun getWidth(): Int

Computes the logical width of the glyph string.

Link copied to clipboard
fun setSize(newLen: Int)

Resize a glyph string to the given length.