{"id":"graphics.text--CreateGraphicsFontReference","name":"CreateGraphicsFontReference","owner":"yeho","package":"graphics.text","kind":"function","signature":"external CreateGraphicsFontReference(text family, text fallbackFamilies, int weight, int size, int lineHeight, text style, text features, text source) returns graphicsFontReference","description":"Create graphics font reference from the supplied values.","context":"Shape, measure, and represent text and glyph resources.","parameters":[{"name":"family","type":"text","description":"Supply family as text."},{"name":"fallbackFamilies","type":"text","description":"Supply fallback families as text."},{"name":"weight","type":"int","description":"Supply weight as int."},{"name":"size","type":"int","description":"Supply size as int."},{"name":"lineHeight","type":"int","description":"Supply line height as int."},{"name":"style","type":"text","description":"Supply style as text."},{"name":"features","type":"text","description":"Supply features as text."},{"name":"source","type":"text","description":"Supply source as text."}],"returns":"graphicsFontReference","members":[],"tags":["cpu","function","graphics","graphics.text","source-example","text","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/graphics/text/shaping.yh","line":294,"sha256":"116949dcf311dd0fd246fd1f36696a40bd178e892887dff1d1d515316e09b6c5"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use CreateGraphicsFontReference","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using graphics.text\n\n// Shape, measure, and represent text and glyph resources.\ntext family = \"cpu\"\ntext fallbackFamilies = \"fallback Families\"\nint weight = 1\nint size = 1\nint lineHeight = 1\ntext style = \"style\"\ntext features = \"features\"\ntext source = \"example\"\ngraphicsFontReference result = CreateGraphicsFontReference(family, fallbackFamilies, weight, size, lineHeight, style, features, source)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.graphics_text__creategraphicsfontreference\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"graphics.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/text\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"ccea3e1c8f6c28cdb03ae76d9774688abf3dd21bdb431a1f77416d2cacc9cba1","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=graphics.text--CreateGraphicsFontReference","json":"https://demonhunterlabs.com/reference/items/graphics.text--CreateGraphicsFontReference.json","markdown":"https://demonhunterlabs.com/reference/text/graphics.text--CreateGraphicsFontReference.md"}
