Skip to content

PdfAnsiTrueTypeFont Class

Definition

Namespace: Xfinium.Pdf.Graphics

Defines an ANSI TrueType font.

C#
public class PdfAnsiTrueTypeFont : PdfTrueTypeFont

Inheritance: Object → PdfFont → PdfTrueTypeFont → PdfAnsiTrueTypeFont

Remarks

An ANSI TrueType font supports only the Windows 1252 encoding, Unicode characters cannot be displayed.

Constructors

Name Description
PdfAnsiTrueTypeFont(String,Double,Boolean) Initializes a new PdfTrueTypeFont object.
PdfAnsiTrueTypeFont(String,Int32,Double,Boolean) Initializes a new PdfTrueTypeFont object.
PdfAnsiTrueTypeFont(Stream,Double,Boolean) Initializes a new PdfTrueTypeFont object.
PdfAnsiTrueTypeFont(Stream,Int32,Double,Boolean) Initializes a new PdfTrueTypeFont object.
PdfAnsiTrueTypeFont(PdfAnsiTrueTypeFont) Initializes a new PdfAnsiTrueTypeFont object.
PdfAnsiTrueTypeFont(PdfAnsiTrueTypeFont,Double) Initializes a new PdfAnsiTrueTypeFont object.

Properties

Name Description
Bold Gets or sets a value indicating whether the font is bold.
(inherited from PdfTrueTypeFont)
CharacterSpacing Gets or sets the character spacing to be used by this font.
(inherited from PdfFont)
CosFont Gets the COS font dictionary.
(inherited from PdfFont)
EnableFontSubset Gets or sets a value indicating whether this font must be subset or not.
(inherited from PdfTrueTypeFont)
HorizontalScaling Gets or sets the text horizontal scaling to be used by this font.
(inherited from PdfFont)
Italic Gets or sets a value indicating whether the font is italic.
(inherited from PdfTrueTypeFont)
Metrics Gets the font metrics.
(inherited from PdfFont)
Name Gets the name of this font.
(inherited from PdfTrueTypeFont)
Size Gets or sets the font size.
(inherited from PdfFont)
Strikethrough Gets or sets a value indicating whether the font is strikethrough.
(inherited from PdfFont)
StrikethroughOffset Gets or sets the strikethrough offset.
(inherited from PdfFont)
TextRenderingMode Gets or sets the text rendering mode.
(inherited from PdfFont)
Underline Gets or sets a value indicating whether the font is underlined.
(inherited from PdfFont)

Methods

Name Description
EncodeString Encodes the given text to a byte array based on font's encoding.
(inherited from PdfTrueTypeFont)
GetCharWidth Gets the width of the given character when drawn with this font object.
(inherited from PdfTrueTypeFont)
GetGlyphEmWidth Gets the Em width of the given glyph when drawn with this font object.
(inherited from PdfTrueTypeFont)
GetGlyphOutline Gets the outline of the specified character, given as a Unicode code point.
(inherited from PdfTrueTypeFont)
UpdateCharsSubset Updates the set of characters that must be subset in the final font data.
(inherited from PdfTrueTypeFont)
UpdateGlyphsSubset Updates the set of glyphs that must be subset in the final font data.
(inherited from PdfTrueTypeFont)