graphics.text · function ·

CreateGraphicsTextMetricsV2

Create graphics text metrics v2 from the supplied values.

cpufunctiongraphicsgraphics.textsource-exampletextyeho

Shape, measure, and represent text and glyph resources.

external CreateGraphicsTextMetricsV2(int ascentQ26_6, int descentQ26_6, int lineGapQ26_6, int capHeightQ26_6, int xHeightQ26_6, int underlinePositionQ26_6, int underlineThicknessQ26_6, int advanceXQ26_6, int advanceYQ26_6) returns graphicsTextMetricsV2

Status: source-declared

Parameters

int ascentQ26_6
Supply ascent q26 6 as int.
int descentQ26_6
Supply descent q26 6 as int.
int lineGapQ26_6
Supply line gap q26 6 as int.
int capHeightQ26_6
Supply cap height q26 6 as int.
int xHeightQ26_6
Supply x height q26 6 as int.
int underlinePositionQ26_6
Supply underline position q26 6 as int.
int underlineThicknessQ26_6
Supply underline thickness q26 6 as int.
int advanceXQ26_6
Supply advance xq26 6 as int.
int advanceYQ26_6
Supply advance yq26 6 as int.

Use CreateGraphicsTextMetricsV2

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

cpu · source-example · type checked

using graphics.text

// Shape, measure, and represent text and glyph resources.
int ascentQ26_6 = 1
int descentQ26_6 = 1
int lineGapQ26_6 = 1
int capHeightQ26_6 = 1
int xHeightQ26_6 = 1
int underlinePositionQ26_6 = 1
int underlineThicknessQ26_6 = 1
int advanceXQ26_6 = 1
int advanceYQ26_6 = 1
graphicsTextMetricsV2 result = CreateGraphicsTextMetricsV2(ascentQ26_6, descentQ26_6, lineGapQ26_6, capHeightQ26_6, xHeightQ26_6, underlinePositionQ26_6, underlineThicknessQ26_6, advanceXQ26_6, advanceYQ26_6)
Console.Log("Inspect result in your debugger")
project.mech
manifestVersion = "2"
package = "api.example.graphics_text__creategraphicstextmetricsv2"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"
Notes and source

Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.

yeho/packages/graphics/text/shaping_v2.yh:847