Method ParseFontTableXml
ParseFontTableXml(ReadOnlyMemory<byte>)
Parses DOCX fontTable.xml and returns style-specific embedded font
references (regular, bold, italic, bold-italic).
public static IReadOnlyList<EmbeddedFontReference> ParseFontTableXml(ReadOnlyMemory<byte> fontTableXmlUtf8)
Parameters
fontTableXmlUtf8ReadOnlyMemory<byte>The raw UTF-8 XML bytes.
Returns
- IReadOnlyList<EmbeddedFontReference>
The parsed references, in document order.
Exceptions
- ArgumentException
fontTableXmlUtf8is empty.- FormatException
The font table contains an invalid GUID key.