Opait PDF Library
|
Factory class for the standard 14 fonts as defined in the PDF spec. More...
Public Member Functions | |
PdfFont (string family, FontStyle style=FontStyle.Regular, bool embed=true) | |
Initializes an instance from a system TrueType font. More... | |
int | GetCharWidth (char charcode) |
Gets the width of a character in 1/1000ths of a point size for the specified character. More... | |
int | GetTextWidth (string text) |
Get sum of character widths for the given text. More... | |
bool | Equals (PdfFont other) |
Indicates whether the current object is equal to another object of the same type. More... | |
Static Public Member Functions | |
static PdfFont | CreateFont (PdfOptions options) |
Creates a font for display of text based on the specified options. More... | |
Properties | |
static PdfFont | Courier [get] |
Built-in fixed pitch PDF font. | |
static PdfFont | CourierBold [get] |
Build-in fixed pitch bold PDF font. | |
static PdfFont | CourierItalic [get] |
Build-in fixed pitch italic PDF font. | |
static PdfFont | CourierBoldItalic [get] |
Build-in fixed pitch bold and italic PDF font. | |
static PdfFont | Helvetica [get] |
Built-in sans-serif PDF font similar to Arial. | |
static PdfFont | HelveticaBold [get] |
Built-in sans-serif bold PDF font similar to Arial. | |
static PdfFont | HelveticaItalic [get] |
Built-in sans-serif italic PDF font similar to Arial. | |
static PdfFont | HelveticaBoldItalic [get] |
Built-in sans-serif bold and italic PDF font similar to Arial. | |
static PdfFont | Times [get] |
Built-in serif Times-Roman PDF font. | |
static PdfFont | TimesBold [get] |
Built-in serif and bold Times-Roman PDF font. | |
static PdfFont | TimesItalic [get] |
Built-in serif and italic Times-Roman PDF font. | |
static PdfFont | TimesBoldItalic [get] |
Built-in serif, bold and italic Times-Roman PDF font. | |
static PdfFont | Symbol [get] |
Built-in symbol PDF font. | |
static PdfFont | ZapfDingbats [get] |
Built-in ZapfDingbats PDF font similar to Windings. | |
static PdfFont | GlyphLess [get] |
The glyph-less font used by Tesseract. | |
string | FamilyName [get, set] |
Gets the font family name. | |
Factory class for the standard 14 fonts as defined in the PDF spec.
Represents one of the 14 standard built in type 1 fonts. These fonts, or their font metrics and suitable substitution fonts, must be available to the consumer application.
Factory class for the single glyph-less font used in Tesseract-OCR.
Opait.Pdf.PdfFont.PdfFont | ( | string | family, |
FontStyle | style = FontStyle.Regular , |
||
bool | embed = true |
||
) |
Initializes an instance from a system TrueType font.
family | The font family name. |
style | The font style bits. |
embed | Embed a subset of the font in the PDF file. |
|
static |
Creates a font for display of text based on the specified options.
options | The PDF options used in creating the font. |
bool Opait.Pdf.PdfFont.Equals | ( | PdfFont | other | ) |
Indicates whether the current object is equal to another object of the same type.
other | The font to compare for equality. |
int Opait.Pdf.PdfFont.GetCharWidth | ( | char | charcode | ) |
Gets the width of a character in 1/1000ths of a point size for the specified character.
charcode | The code of the character to process. |
int Opait.Pdf.PdfFont.GetTextWidth | ( | string | text | ) |
Get sum of character widths for the given text.
text | The text to measure. |