Aspose::Font::Ttf::TtfFont class

TtfFont class

Represents TrueType Font (TTF).

class TtfFont : public Aspose::Font::Font

Methods

MethodDescription
Convert(Aspose::Font::FontType) overrideConverts the Font into another format.
Convert(Aspose::Font::FontType, System::SharedPtr<System::Collections::Generic::ICollection<uint32_t>>)Converts the Font into another format with limiting character set.
virtual get_CffFont()Gets CFF Font if present.
get_Encoding() overrideGets Font encoding.
get_FontDefinition() overrideGets Font definition.
get_FontFamily() overrideGets or Sets Font family.
get_FontName() overrideGets or Sets Font face name.
get_FontNames() overrideGets Font names.
get_FontStyle() overrideGets Font style. This is a value computed and represented in generalized type.
get_FontType() overrideGets Font type. Returns FontType.TTF value.
get_GlyphIdType() overrideGets glyph id type specification.
get_IsSymbolic()Returns true in case Font is symbolic.
get_Metrics() overrideGets Font metrics.
get_NumGlyphs() overrideGets number of glyphs in the Font.
get_PostscriptNames() overrideGets Postscript Font names.
get_Style() overrideGets or Sets Font style. This is a raw string value provided by Font file.
virtual get_TtfTables()Gets TTF tables.
GetAllGlyphIds() overrideReturns 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.
GetGlyphById(System::SharedPtr<Aspose::Font::Glyphs::GlyphId>) overrideReturns 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(System::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(uint32_t)Returns glyph by glyph id.
virtual GetGlyphComponentsById(System::SharedPtr<Aspose::Font::Glyphs::GlyphId>, System::SharedPtr<Aspose::Font::Glyphs::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(System::String, System::SharedPtr<Aspose::Font::Glyphs::GlyphIdList>)Gets a glyph by glyph name passed and fills passed list of glyph identifiers with components of this glyph.
GetGlyphComponentsById(uint32_t, System::SharedPtr<Aspose::Font::Glyphs::GlyphIdList>)Gets a glyph by glyph index passed and fills passed list of glyph identifiers with components of this glyph.
GetGlyphsForText(System::String) overrideGet glyphs representation for text.
set_FontFamily(System::String) overrideGets or Sets Font family.
set_FontName(System::String) overrideGets or Sets Font face name.
set_Style(System::String) overrideGets or Sets Font style. This is a raw string value provided by Font file.

See Also