GlyphGeometry

class GlyphGeometry(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

The PangoGlyphGeometry structure contains width and positioning information for a single glyph.

Note that @width is not guaranteed to be the same as the glyph extents. Kerning and other positioning applied during shaping will affect both the @width and the @x_offset for the glyphs in the glyph string that results from shaping.

The information in this struct is intended for rendering the glyphs, as follows:

  1. Assume the current point is (x, y)

  2. Render the current glyph at (x + x_offset, y + y_offset),

  3. Advance the current point to (x + width, y)

  4. Render the next glyph

Constructors

Link copied to clipboard
constructor()

Allocate a new GlyphGeometry.

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

Allocate a new GlyphGeometry using the provided AutofreeScope.

constructor(width: <Error class: unknown class>, xOffset: <Error class: unknown class>, yOffset: <Error class: unknown class>)

Allocate a new GlyphGeometry.

constructor(width: <Error class: unknown class>, xOffset: <Error class: unknown class>, yOffset: <Error class: unknown class>, scope: <Error class: unknown class>)

Allocate a new GlyphGeometry using the provided AutofreeScope.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

Properties

Link copied to clipboard
val pangoGlyphGeometryPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
var width: <Error class: unknown class>

the logical width to use for the the character.

Link copied to clipboard
var xOffset: <Error class: unknown class>

horizontal offset from nominal character position.

Link copied to clipboard
var yOffset: <Error class: unknown class>

vertical offset from nominal character position.

Functions

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