Skip to main content

PdfFontEmbedding Enum

Definition​

Assembly:Avalonia.Controls.Documents.Serialization.Pdf
Package:Avalonia.Controls.Documents.Serialization.Pdf

Controls how fonts are embedded into an exported PDF.

public enum PdfFontEmbedding

Inheritance: Enum -> PdfFontEmbedding

Fields​

NameDescription
FullEmbed the complete font file for every font used by the document. Largest output, maximum fidelity on every viewer.
NoneDo not embed font programs. Viewers substitute locally available fonts; text metrics are still written so layout is preserved approximately.
SubsetEmbed a subset containing only the glyphs the document uses. Not implemented yet; currently behaves like Avalonia.Controls.Documents.Serialization.Pdf.PdfFontEmbedding.Full.

Full Field​

Embed the complete font file for every font used by the document. Largest output, maximum fidelity on every viewer.

public Avalonia.Controls.Documents.Serialization.Pdf.PdfFontEmbedding Full

None Field​

Do not embed font programs. Viewers substitute locally available fonts; text metrics are still written so layout is preserved approximately.

public Avalonia.Controls.Documents.Serialization.Pdf.PdfFontEmbedding None

Subset Field​

Embed a subset containing only the glyphs the document uses. Not implemented yet; currently behaves like Avalonia.Controls.Documents.Serialization.Pdf.PdfFontEmbedding.Full.

public Avalonia.Controls.Documents.Serialization.Pdf.PdfFontEmbedding Subset