Skip to content

PdfTrueTypeFont Class

Definition

Namespace: Xfinium.Pdf.Graphics

Defines the base class for TrueType fonts.

C#
public class PdfTrueTypeFont : PdfFont

Inheritance: Object → PdfFont → PdfTrueTypeFont

Properties

Name Description
Bold Gets or sets a value indicating whether the font is bold.
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.
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.
Metrics Gets the font metrics.
(inherited from PdfFont)
Name Gets the name of this font.
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.
GetCharWidth Gets the width of the given character when drawn with this font object.
GetGlyphEmWidth Gets the Em width of the given glyph when drawn with this font object.
GetGlyphOutline Gets the outline of the specified character, given as a Unicode code point.
UpdateCharsSubset Updates the set of characters that must be subset in the final font data.
UpdateGlyphsSubset Updates the set of glyphs that must be subset in the final font data.