EmbedTrueTypeFont(FontQuery) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Embeds the TrueType program the document's font resolvers find for query, as EmbedTrueTypeFont(ReadOnlyMemory<Byte>, Int32) does.

public PdfCanvasFont? EmbedTrueTypeFont(FontQuery query)

Parameters

query
FontQuery

What to look for: a PostScript or family name, and optionally style, weight and a Standard 14 stand-in.

Returns

PdfCanvasFont
The font, or null when no resolver finds a program for the query or the program it finds cannot be embedded (not TrueType, restricted).

Remarks

ISO 32000-2 §9.7.4–§9.7.6, §9.8, §9.9 and §9.10.3. The resolvers are the ones the document was opened or created with (PdfOptions.UseFontResolver, UseStandard14Fonts, the system font resolver); set the query's FontType to TrueType to ask for a TrueType program. A mutation the first time a program is embedded.