Table of Contents

Property DefaultFontEncoding

Namespace
PdfSharp.Fonts
Assembly
PdfSharp.dll

DefaultFontEncoding

Gets or sets the default font encoding used for XFont objects where encoding is not explicitly specified. If it is not set, the default value is PdfFontEncoding.Automatic. If you are sure your document contains only Windows-1252 characters (see https://en.wikipedia.org/wiki/Windows-1252) set default encoding to PdfFontEncoding.WinAnsi. Must be set only once per app domain.

public static PdfFontEncoding DefaultFontEncoding { get; set; }

Property Value

PdfFontEncoding