MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / PiuFontNew

Function PiuFontNew

modules/piu/MC/piuFont.c:186–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186void PiuFontNew(xsMachine* the)
187{
188 PiuFont* self;
189 xsResult = xsNewHostObject(NULL);
190 xsSetHostChunk(xsResult, NULL, sizeof(PiuFontRecord));
191 self = PIU(Font, xsResult);
192 (*self)->reference = xsToReference(xsResult);
193 (*self)->the = the;
194 xsSetHostHooks(xsResult, &PiuFontHooks);
195}
196
197#ifdef piuGPU
198void PiuFontBind(PiuFont* self, PiuApplication* application, PiuView* view)

Callers 1

PiuStyleLookupFontFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected