Table of Contents

Method ParseFontTableXml

Namespace
DocWright.Fonts
Assembly
DocWright.Fonts.dll

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

fontTableXmlUtf8 ReadOnlyMemory<byte>

The raw UTF-8 XML bytes.

Returns

IReadOnlyList<EmbeddedFontReference>

The parsed references, in document order.

Exceptions

ArgumentException

fontTableXmlUtf8 is empty.

FormatException

The font table contains an invalid GUID key.