PdfType1Font Class
Definition
Namespace: Xfinium.Pdf.Graphics
Defines a Type1 PDF font.
Inheritance: Object → PdfFont → PdfType1Font
Properties
| Name | Description |
|---|---|
| Bold | Gets or sets a value indicating whether the font is bold. (inherited from PdfFont) |
| 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) |
| 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 PdfFont) |
| 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 |
|---|---|
| CreateWithAfmMetrics | Creates a Type1 font from a combination of .afm and .pfb files. |
| CreateWithPfmMetrics | Creates a Type1 font from a combination of .pfm and .pfb files. |
| 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. |