Font
Base class from which all fonts are derived.
public abstract class Font : Resource
Public MustInherit Class Font
Inherits Resource
Inheritance: ObjectResourceFont
Derived: CeTeBullets, CoreLatinFont, Courier, CourierBold, CourierBoldOblique, CourierOblique, GoogleFont, Helvetica, HelveticaBold, HelveticaBoldOblique, HelveticaOblique, OpenTypeFont, Symbol, TimesBold, TimesBoldItalic, TimesItalic, TimesRoman, Type1Font, WebOpenFont
Licensing Info
This class is a DynamicPDF Core Suite Essentials feature. One of the following is required for non-evaluation usage:
- Any active DynamicPDF Subscription (Essentials, Professional, Professional Plus or Ultimate).
- A DynamicPDF Core Suite for .NET v12.X Essentials license.
- It can also be used for free with a public link back to www.dynamicpdf.com and with the DynamicPDF Essentials message displaying on the bottom of each page.
Remarks
See the Fonts And Text topic for more on fonts.
Properties
| Ascender | Gets the ascender for the font. |
| CeTeBullets | Gets the ceTe Bullets font. |
| Courier | Gets the Courier core font with Latin 1 encoding. |
| CourierBold | Gets the Courier Bold core font with Latin 1 encoding. |
| CourierBoldOblique | Gets the Courier Bold Oblique core font with Latin 1 encoding. |
| CourierOblique | Gets the Courier Oblique core font with Latin 1 encoding. |
| Descender | Gets the descender for the font. |
| Encoder | Gets the encoder for the font. |
| FormFontName | Gets the four character name of the font. |
| HanyangSystemsGothicMedium | Gets the Hanyang Systems Gothic Medium Korean font. |
| HanyangSystemsShinMyeongJoMedium | Gets the Hanyang Systems Shin MyeongJo Medium Korean font. |
| HeiseiKakuGothicW5 | Gets the Heisei Kaku Gothic W5 Japanese font. |
| HeiseiMinchoW3 | Gets the Heisei Mincho W3 Japanese font. |
| Helvetica | Gets the Helvetica core font with Latin 1 encoding. |
| HelveticaBold | Gets the Helvetica Bold core font with Latin 1 encoding. |
| HelveticaBoldOblique | Gets the Helvetica Bold Oblique core font with Latin 1 encoding. |
| HelveticaOblique | Gets the Helvetica Oblique core font with Latin 1 encoding. |
| LineBreaker | Gets the default line breaker for the font. |
| LineGap | Gets the line gap for the font. |
| MonotypeHeiMedium | Gets the Monotype Hei Medium Chinese (traditional) font. |
| MonotypeSungLight | Gets the Monotype Sung Light Chinese (traditional) font. |
| Name | Gets the name of the font. |
| RequiredPdfObjects | Gets the number of PDF objects required by the resource. (Inherited from Resource) |
| ResourceType | Gets the resource type. |
| SinoTypeSongLight | Gets the SinoType Song Light Chinese (simplified) font. |
| Symbol | Gets the Symbol core font. |
| TimesBold | Gets the Times Bold core font with Latin 1 encoding. |
| TimesBoldItalic | Gets the Times Bold Italic core font with Latin 1 encoding. |
| TimesItalic | Gets the Times Italic core font with Latin 1 encoding. |
| TimesRoman | Gets the Times Roman core font with Latin 1 encoding. |
| Uid | Gets the unique ID of the resource. (Inherited from Resource) |
| ZapfDingbats | Gets the Zapf Dingbats core font. |
Methods
| Draw(DocumentWriter) | Draws the resource to the given DocumentWriter object. (Inherited from Resource) |
| Equals(Object) | Determines whether the specified Object is equal to the current Object . (Inherited from Object) |
| GetAscender(Single) | Returns the ascender of the font in points for the given font size. |
| GetBaseLine(Single, Single) | Returns the baseline of the font in points for the given leading and font size. |
| GetDefaultLeading(Single) | Returns the default leading of the font in points for the given font size. |
| GetDescender(Single) | Returns the descender of the font in points for the given font size. |
| GetGlyphWidth(Char) | Returns the mwidth of a glyph. |
| GetHashCode() | Serves as a hash function for a particular type. (Inherited from Object) |
| GetKernValue(Char, Char) | Returns kerning space between two chars. |
| GetLineGap(Single) | Returns the line gap of the font in points for the given font size. |
| GetTextLines(Char[], Single, Single) | Returns a TextLineList for the given character array. |
| GetTextLines(Char[], Single, Single, Single) | Returns a TextLineList for the given character array. |
| GetTextWidth(Char[], Single) | Returns the width of the given text. |
| GetTextWidth(String, Single) | Returns the width of the given text. |
| GetType() | Gets the Type of the current instance. (Inherited from Object) |
| Google(String) | Load google font using font name. |
| Google(String, [Optional] Boolean, [Optional] Boolean) | Load google font using font name |
| Google(String, [Optional] Int32, [Optional] Boolean) | Load google font using font name |
| HasKerning() | Indicates whether the given font is having Kerning pairs or not. |
| ToString() | Returns a String that represents the current Object . (Inherited from Object) |