{"id":"graphics.text--CreateGraphicsFontResource","name":"CreateGraphicsFontResource","owner":"yeho","package":"graphics.text","kind":"function","signature":"external CreateGraphicsFontResource(text id, text family, text sourceUri, text format, int minimumWeight, int maximumWeight, text styles, text source) returns graphicsFontResource","description":"Create graphics font resource from the supplied values.","context":"Shape, measure, and represent text and glyph resources.","parameters":[{"name":"id","type":"text","description":"Supply id as text."},{"name":"family","type":"text","description":"Supply family as text."},{"name":"sourceUri","type":"text","description":"Supply source uri as text."},{"name":"format","type":"text","description":"Supply format as text."},{"name":"minimumWeight","type":"int","description":"Supply minimum weight as int."},{"name":"maximumWeight","type":"int","description":"Supply maximum weight as int."},{"name":"styles","type":"text","description":"Supply styles as text."},{"name":"source","type":"text","description":"Supply source as text."}],"returns":"graphicsFontResource","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":299,"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 CreateGraphicsFontResource","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 id = \"id\"\ntext family = \"cpu\"\ntext sourceUri = \"source Uri\"\ntext format = \"png\"\nint minimumWeight = 1\nint maximumWeight = 1\ntext styles = \"styles\"\ntext source = \"example\"\ngraphicsFontResource result = CreateGraphicsFontResource(id, family, sourceUri, format, minimumWeight, maximumWeight, styles, source)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.graphics_text__creategraphicsfontresource\"\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":"b9038e0cc0454b74c1fba25771ce57e1eb8eac2faf925a41164595e72e54b70e","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=graphics.text--CreateGraphicsFontResource","json":"https://demonhunterlabs.com/reference/items/graphics.text--CreateGraphicsFontResource.json","markdown":"https://demonhunterlabs.com/reference/text/graphics.text--CreateGraphicsFontResource.md"}
