Aspose::Font::Font class

Font class

Represents base Font class.

class Font : public virtual Aspose::Font::IFont,
             public Aspose::Font::Glyphs::IGlyphAccessor,
             public Aspose::Font::IFontSaver,
             public Aspose::Font::Licensing::IVentureLicenseTarget

Methods

MethodDescription
virtual Convert(Aspose::Font::FontType)Converts the Font into another format.
virtual get_Encoding()Gets Font encoding.
virtual get_FontDefinition()Gets Font definition.
virtual get_FontFamily()Gets or Sets Font family.
virtual get_FontName()Gets or Sets Font face name.
virtual get_FontNames()Gets Font names.
get_FontSaver() overrideGets Font save functionality.
virtual get_FontStyle()Gets Font style. This is a value computed and represented in generalized type.
virtual get_FontType()Gets Font type.
get_GlyphAccessor() overrideFont glyph accessor. Retrieves glyphs and glyph identifiers.
virtual get_GlyphIdType()Glyph id type specification. For consumers who needs to know the ‘bytes[]’ real type.
virtual get_Metrics()Gets Font metrics.
virtual get_NumGlyphs()Gets number of glyphs in the Font.
virtual get_PostscriptNames()Gets postscript Font names.
virtual get_Style()Gets or Sets Font style. This is a raw string value provided by Font file.
virtual GetAllGlyphIds()Returns all glyph ids, available in the Font. Glyph id is a unique number for a glyph, which is font type dependent. For example: Type1’s id is a glyph name, instance of (GlyphStringId) class. TTF’s id is an int index, instance of (GlyphUInt32Id) class.
virtual GetGlyphById(System::SharedPtr<Glyphs::GlyphId>)Returns glyph by glyph id. Glyph id is a unique number for a glyph, which is font type dependent. GlyphId - derived object. For example: Type1’s id is a glyph name, instance of (GlyphStringId) class. TTF’s id is an int index, instance of (GlyphUInt32Id) class.
GetGlyphsForText(System::String) overrideGets glyphs representation for text.
static Open(System::SharedPtr<Aspose::Font::Sources::FontDefinition>)Opens a font, using FontDefinition object.
static Open(Aspose::Font::FontType, System::SharedPtr<Sources::StreamSource>)Opens a font, using font type and stream source.
static Open(Aspose::Font::FontType, System::String)Opens a font, using font type and font file name.
static Open(Aspose::Font::FontType, System::ArrayPtr<uint8_t>)Opens a font, using font type and font data byte array.
Save(System::SharedPtr<System::IO::Stream>) overrideSaves the Font into original format.
Save(System::String) overrideSaves the Font into original format.
SaveToFormat(System::SharedPtr<System::IO::Stream>, FontSavingFormats) overrideSaves the Font into format specified.
virtual set_FontFamily(System::String)Gets or Sets Font family.
virtual set_FontName(System::String)Gets or Sets Font face name.
virtual set_Style(System::String)Gets or Sets Font style. This is a raw string value provided by Font file.

See Also