API reference
Preparing search index…

Native-owned Rml::FontMetrics snapshot with shared field access.

Editing a snapshot does not change the active engine's metrics.

Source & inheritance
Member directory9

Accessors

Accessors

  • get ascent(): number

    Rml::FontMetrics::ascent, positive above the baseline.

    Returns

    number

    Distance in pixels.

    Source & inheritance
  • get descent(): number

    Rml::FontMetrics::descent, positive below the baseline.

    Returns

    number

    Distance in pixels.

    Source & inheritance
  • get hasEllipsis(): boolean

    Whether the font face supplies the U+2026 ellipsis glyph.

    Returns

    boolean

    Whether the face contains an ellipsis glyph.

    Source & inheritance
  • get lineSpacing(): number

    The distance between consecutive text baselines in pixels.

    Returns

    number

    Font line spacing in pixels.

    Source & inheritance
  • get underlinePosition(): number

    Rml::FontMetrics::underline_position, positive below the baseline.

    Returns

    number

    Position in pixels.

    Source & inheritance
  • get underlineThickness(): number

    The underline thickness in pixels.

    Returns

    number

    Thickness in pixels.

    Source & inheritance
  • get values(): Float32Array

    Shared ascent, descent, line spacing, x-height, underline position and underline thickness float32 fields, in that order.

    Returns

    Float32Array

    Writable snapshot storage retained after shutdown.

    Source & inheritance
  • get xHeight(): number

    The height of the lowercase x glyph in pixels.

    Returns

    number

    Height in pixels.

    Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0