Skip to content

PdfStandardFont Class

Definition

Namespace: Xfinium.Pdf.Graphics

Defines a standard Pdf font.

C#
public class PdfStandardFont : PdfFont

Inheritance: Object → PdfFont → PdfStandardFont

Constructors

Name Description
PdfStandardFont() Initializes a new PdfStandardFont object
PdfStandardFont(PdfStandardFontFace,Double) Initializes a new PdfStandardFont object.
PdfStandardFont(PdfStandardFont) Initializes a new PdfStandardFont object with another font.

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)
FontFace Gets or sets the font face.
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)
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 PdfFont)
GetCharWidth Gets the width of the given character when drawn with this font object.