MCPcopy Create free account
hub / github.com/Tencent/libpag / WriteFontData

Function WriteFontData

src/codec/DataTypes.cpp:225–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225bool WriteFontData(EncodeStream* stream, void* target) {
226 auto textDocument = reinterpret_cast<TextDocument*>(target);
227 auto id = static_cast<CodecContext*>(stream->context)
228 ->getFontID(textDocument->fontFamily, textDocument->fontStyle);
229 stream->writeEncodedUint32(id);
230 return true;
231}
232
233static std::unique_ptr<BlockConfig> TextDocumentBlockCore(TextDocument* textDocument,
234 TagCode tagCode) {

Callers

nothing calls this directly

Calls 2

getFontIDMethod · 0.80
writeEncodedUint32Method · 0.80

Tested by

no test coverage detected