TtfFont

TtfFont class

Represents TrueType Font (TTF).

public class TtfFont : Font

Properties

Name Description
virtual CffFont { get; } Gets CFF Font if present.
override Encoding { get; } Gets Font encoding.
override FontDefinition { get; } Gets Font definition.
override FontFamily { get; set; } Gets or Sets Font family.
override FontName { get; set; } Gets or Sets Font face name.
override FontNames { get; } Gets Font names.
FontSaver { get; } Gets Font save functionality.
override FontStyle { get; } Gets Font style. This is a value computed and represented in generalized type.
override FontType { get; } Gets Font type. Returns FontType.TTF value.
GlyphAccessor { get; } Font glyph accessor. Retrieves glyphs and glyph identifiers.
override GlyphIdType { get; } Gets glyph id type specification.
IsSymbolic { get; } Returns true in case Font is symbolic.
override Metrics { get; } Gets Font metrics.
override NumGlyphs { get; } Gets number of glyphs in the Font.
override PostscriptNames { get; } Gets Postscript Font names.
override Style { get; set; } Gets or Sets Font style. This is a raw string value provided by Font file.
virtual TtfTables { get; } Gets TTF tables.

Methods

Name Description
override Convert(FontType) Converts the Font into another format.
override GetAllGlyphIds() Returns array of all glyph ids, available in the Font. Glyph id is a unique number for a glyph, which is font type dependent. TTF Font glyph id can be instance of (GlyphStringId) class or (GlyphUInt32Id) class. Name (string) glyph addressing is supported for TTF Fonts via Post table mapping. In case CFF Font inside, the CFF structures are used to address glyphs by name.
override GetGlyphById(GlyphId) Returns glyph by glyph id. Glyph id is a unique number for a glyph, which is font type dependent. TTF Font glyph id can be instance of (GlyphStringId) class or (GlyphUInt32Id) class. Name (string) glyph addressing is supported for TTF Fonts via Post table mapping. In case CFF Font inside, the CFF structures are used to address glyphs by name.
GetGlyphById(string) Returns glyph by glyph name. Name (string) glyph addressing is supported for TTF fonts via Post table mapping. In case CFF Font inside, the CFF structures are used to address glyphs by name.
GetGlyphById(uint) Returns glyph by glyph id.
virtual GetGlyphComponentsById(GlyphId, GlyphIdList) Gets a glyph by glyph identifier passed and fills passed list of glyph identifiers with components of this glyph. Glyph id is a unique number for a glyph, which is font type dependent. TTF Font glyph id can be instance of (GlyphStringId) class or (GlyphUInt32Id) class. Name (string) glyph addressing is supported for TTF Fonts via Post table mapping. In case CFF Font inside, the CFF structures are used to address glyphs by name.
GetGlyphComponentsById(string, GlyphIdList) Gets a glyph by glyph name passed and fills passed list of glyph identifiers with components of this glyph.
GetGlyphComponentsById(uint, GlyphIdList) Gets a glyph by glyph index passed and fills passed list of glyph identifiers with components of this glyph.
override GetGlyphsForText(string) Get glyphs representation for text.
virtual Save(Stream) Saves the Font into original format.
virtual Save(string) Saves the Font into original format.
SaveToFormat(Stream, FontSavingFormats) Saves the Font into format specified.

See Also