| 223 | } |
| 224 | |
| 225 | bool 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 | |
| 233 | static std::unique_ptr<BlockConfig> TextDocumentBlockCore(TextDocument* textDocument, |
| 234 | TagCode tagCode) { |
nothing calls this directly
no test coverage detected