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

Function CFELayoutRun

modules/commodetto/cfe8x8.c:119–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119void CFELayoutRun(CommodettoFontEngine tf, const char *utf8, int32_t byteLength, CFERun run, int32_t runLength, int32_t width)
120{
121 const char *utf8End = utf8 + byteLength;
122
123 while (utf8 < utf8End) {
124 run->glyphID = (uint16_t)PocoNextFromUTF8((uint8_t **)&utf8);;
125 run->advance = 8;
126
127 runLength -= 1;
128 if (1 == runLength)
129 break; //@@ report run array overflow
130 }
131
132 run->glyphID = kInvalidGlyphID;
133}
134
135void CFEGetOutlineFromUnicode(CommodettoFontEngine cfe, uint32_t unicode, uint8_t **outline, uint32_t *outlineSize)
136{

Callers

nothing calls this directly

Calls 1

PocoNextFromUTF8Function · 0.85

Tested by

no test coverage detected