Font Class |
Namespace: pdftron.PDF
public sealed class Font : IClosable
The Font type exposes the following members.
Name | Description | |
---|---|---|
Close | ||
Create(Obj) |
Creates a PDF::Font object.
| |
Create(PDFDoc, FontStandardType1Font) |
Creates a PDF::Font object for the given standard (also known as base 14 font).
| |
Create(SDFDoc, FontStandardType1Font) |
Creates a PDF::Font object for the given standard (also known as base 14 font).
| |
Create(PDFDoc, Font, String) | Create a new Unicode font based on the description of an existing PDF font.
| |
Create(PDFDoc, FontStandardType1Font, Boolean) |
Creates a PDF::Font object for the given standard (also known as base 14 font).
| |
Create(PDFDoc, String, String) | Create a new Unicode font based on the description of an existing PDF font.
| |
Create(SDFDoc, Font, String) | Create a new Unicode font based on the description of an existing PDF font.
| |
Create(SDFDoc, FontStandardType1Font, Boolean) |
Creates a PDF::Font object for the given standard (also known as base 14 font).
| |
Create(SDFDoc, String, String) | Create a new Unicode font based on the description of an existing PDF font.
| |
CreateCIDTrueTypeFont(PDFDoc, String) | Embed an external TrueType font in the document as a CID font.
By default the function selects "Identity-H" encoding that maps 2-byte
Character codes ranging from 0 to 65,535 to the same Unicode value.
Other predefined encodings are listed in Table 5.15 'Predefined CMap names'
in PDF Reference Manual.
| |
CreateCIDTrueTypeFont(SDFDoc, String) | Embed an external TrueType font in the document as a CID font.
By default the function selects "Identity-H" encoding that maps 2-byte
Character codes ranging from 0 to 65,535 to the same Unicode value.
Other predefined encodings are listed in Table 5.15 'Predefined CMap names'
in PDF Reference Manual.
| |
CreateCIDTrueTypeFont(PDFDoc, String, Boolean, Boolean) | Creates the cid true type font.
| |
CreateCIDTrueTypeFont(SDFDoc, String, Boolean, Boolean) | Creates the cid true type font.
| |
CreateCIDTrueTypeFont(PDFDoc, String, Boolean, Boolean, FontEncoding) | Creates the cid true type font.
| |
CreateCIDTrueTypeFont(SDFDoc, String, Boolean, Boolean, FontEncoding) | Creates the cid true type font.
| |
CreateCIDTrueTypeFont(PDFDoc, String, Boolean, Boolean, FontEncoding, Int32) | Creates the cid true type font.
| |
CreateCIDTrueTypeFont(SDFDoc, String, Boolean, Boolean, FontEncoding, Int32) | Creates the cid true type font.
| |
CreateTrueTypeFont(PDFDoc, String) |
Embed an external TrueType font in the document as a simple font.
| |
CreateTrueTypeFont(SDFDoc, String) |
Embed an external TrueType font in the document as a simple font.
| |
CreateTrueTypeFont(PDFDoc, String, Boolean, Boolean) |
Creates a true type font.
| |
CreateTrueTypeFont(SDFDoc, String, Boolean, Boolean) |
Creates the true type font.
| |
CreateType1Font(PDFDoc, String) |
Embed an external TrueType font in the document as a CID font.
By default the function selects "Identity-H" encoding that maps 2-byte
Character codes ranging from 0 to 65,535 to the same Unicode value.
Other predefined encodings are listed in Table 5.15 'Predefined CMap names'
in PDF Reference Manual.
| |
CreateType1Font(SDFDoc, String) | Embed an external TrueType font in the document as a CID font.
By default the function selects "Identity-H" encoding that maps 2-byte
Character codes ranging from 0 to 65,535 to the same Unicode value.
Other predefined encodings are listed in Table 5.15 'Predefined CMap names'
in PDF Reference Manual.
| |
CreateType1Font(PDFDoc, String, Boolean) | Creates the type1 font.
| |
CreateType1Font(SDFDoc, String, Boolean) | Creates the type1 font.
| |
Equals | (Inherited from Object.) | |
GetAscent | The face's ascender is the vertical distance from the baseline to the topmost
point of any glyph in the face. This field's value is a positive number, expressed
in the glyph coordinate system. For all font types except Type 3, the units of
glyph space are one-thousandth of a unit of text space. Some font designs use
a value different from 'bbox.yMax'.
| |
GetBBox | Gets the b box.
| |
GetCharCodeIterator | CharCodeGetIterator represents an iterator interface used to traverse
a list of Char codes for which there is a glyph outline in the embedded font.
| |
GetDescendant | Gets the descendant.
| |
GetDescent | The face's descender is the vertical distance from the baseline to the bottommost
point of any glyph in the face. This field's value is a negative number expressed
in the glyph coordinate system. For all font types except Type 3, the units of
glyph space are one-thousandth of a unit of text space. Some font designs use
a value different from 'bbox.yMin'.
| |
GetDescriptor | Gets the descriptor.
| |
GetEmbeddedFont | Gets the embedded font name.
| |
GetEmbeddedFontBufSize | Gets the embedded font buf size.
| |
GetEncoding |
Gets the encoding of this font.
| |
GetGlyphPath(Int32, Boolean) | The function retrieves the glyph outline for a given Character code.
| |
GetGlyphPath(Int32, ByteArrayRef, DoubleArrayRef, Boolean) | The function retrieves the glyph outline for a given Character code.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetMaxWidth | Gets the max width.
| |
GetMissingWidth | Gets the missing width.
| |
GetName | Gets the name.
| |
GetSDFObj | Gets the SDFObj.
| |
GetShapedText | Creates a set of positioned glyphs corresponding to the visual
representation of the provided text string. The shaped text will take into
account any advanced positioning and substitution features provided by
an underylying embedded font file. For example, these features could include
kerning, ligatures, and diacritic positioning.
Typically the resulting shaped text would be fed into ElementBuilder.CreateShapedTextRun()
| |
GetStandardType1FontType | Gets the standard type1 font type.
| |
GetType | Gets the type.
| |
GetType(Obj) | Gets the type.
| |
GetType3FontMatrix | Gets the type3 font matrix.
| |
GetType3GlyphStream | Gets the type3 glyph stream.
| |
GetUnitsPerEm | Gets the units per em.
| |
GetVerticalAdvance(Int32, DoubleRef, DoubleRef) | Gets the vertical advance.
| |
GetVerticalAdvance(Int32, Double, Double) | Gets the vertical advance.
| |
GetWidth | Gets the width.
| |
IsAllCap | Checks if is all cap.
| |
IsCFF | Checks if is cFF.
| |
IsEmbedded | Tests whether or not the specified font is stored as a font file in a stream
embedded in the PDF file.
| |
IsFixedWidth | Gets the family name.
| |
IsForceBold | Checks if is force bold.
| |
IsHorizontalMode | Checks if is horizontal mode.
| |
IsItalic | Checks if is italic.
| |
IsSerif | Checks if is serif.
| |
IsSimple | Checks if is simple.
| |
IsSymbolic | Checks if is symbolic.
| |
IsValid | Checks if this font object is valid.
Always make this check before using a font object.
| |
MapToCID | Map to CID.
| |
MapToUnicode | Maps the encoding specific 'Charcode' to Unicode. Conversion of 'Charcode'
to Unicode can result in up to four Unicode Characters.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |