graphics.text · function ·
CreateGraphicsResolvedFontV2
Create graphics resolved font v2 from the supplied values.
Shape, measure, and represent text and glyph resources.
external CreateGraphicsResolvedFontV2(int index, text id, text family, text resourceId, int faceIndex, int weight, text style, text source) returns graphicsResolvedFontV2Status: source-declared
Parameters
int index- Supply index as int.
text id- Supply id as text.
text family- Supply family as text.
text resourceId- Supply resource id as text.
int faceIndex- Supply face index as int.
int weight- Supply weight as int.
text style- Supply style as text.
text source- Supply source as text.
Use CreateGraphicsResolvedFontV2
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 index = 1
text id = "id"
text family = "cpu"
text resourceId = "resource Id"
int faceIndex = 1
int weight = 1
text style = "style"
text source = "example"
graphicsResolvedFontV2 result = CreateGraphicsResolvedFontV2(index, id, family, resourceId, faceIndex, weight, style, source)
Console.Log("Inspect result in your debugger")
project.mech
manifestVersion = "2"
package = "api.example.graphics_text__creategraphicsresolvedfontv2"
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:827