Represents TrueType Font (TTF). More...

Inherits Aspose::Font::Font.

Public Member Functions

virtual ASPOSE_FONT_SHARED_API System::SharedPtr< Aspose::Font::TtfTables::TtfTableRepositoryget_TtfTables ()
 Gets TTF tables. More...
 
virtual ASPOSE_FONT_SHARED_API System::SharedPtr< Aspose::Font::Fontget_CffFont ()
 Gets CFF Font if present. More...
 
ASPOSE_FONT_SHARED_API Aspose::Font::FontType get_FontType () override
 Gets Font type. Returns FontType.TTF value. More...
 
ASPOSE_FONT_SHARED_API System::String get_FontFamily () override
 Gets or Sets Font family. More...
 
ASPOSE_FONT_SHARED_API void set_FontFamily (System::String value) override
 Gets or Sets Font family. More...
 
ASPOSE_FONT_SHARED_API System::String get_Style () override
 Gets or Sets Font style. This is a raw string value provided by Font file. More...
 
ASPOSE_FONT_SHARED_API void set_Style (System::String value) override
 Gets or Sets Font style. This is a raw string value provided by Font file. More...
 
ASPOSE_FONT_SHARED_API Aspose::Font::FontStyle get_FontStyle () override
 Gets Font style. This is a value computed and represented in generalized type. More...
 
ASPOSE_FONT_SHARED_API System::String get_FontName () override
 Gets or Sets Font face name. More...
 
ASPOSE_FONT_SHARED_API void set_FontName (System::String value) override
 Gets or Sets Font face name. More...
 
ASPOSE_FONT_SHARED_API System::SharedPtr< MultiLanguageStringget_FontNames () override
 Gets Font names. More...
 
ASPOSE_FONT_SHARED_API System::SharedPtr< MultiLanguageStringget_PostscriptNames () override
 Gets Postscript Font names. More...
 
ASPOSE_FONT_SHARED_API int32_t get_NumGlyphs () override
 Gets number of glyphs in the Font. More...
 
ASPOSE_FONT_SHARED_API bool get_IsSymbolic ()
 Returns true in case Font is symbolic. More...
 
ASPOSE_FONT_SHARED_API System::SharedPtr< IFontMetricsget_Metrics () override
 Gets Font metrics. More...
 
ASPOSE_FONT_SHARED_API System::SharedPtr< IFontEncodingget_Encoding () override
 Gets Font encoding. More...
 
ASPOSE_FONT_SHARED_API Aspose::Font::Glyphs::GlyphIdType get_GlyphIdType () override
 Gets glyph id type specification. More...
 
ASPOSE_FONT_SHARED_API System::SharedPtr< Aspose::Font::Sources::FontDefinitionget_FontDefinition () override
 Gets Font definition. More...
 
ASPOSE_FONT_SHARED_API System::SharedPtr< Aspose::Font::Glyphs::GlyphGetGlyphById (System::SharedPtr< Aspose::Font::Glyphs::GlyphId > id) override
 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. More...
 
ASPOSE_FONT_SHARED_API System::SharedPtr< Aspose::Font::Glyphs::GlyphGetGlyphById (System::String glyphName)
 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. More...
 
ASPOSE_FONT_SHARED_API System::SharedPtr< Aspose::Font::Glyphs::GlyphGetGlyphById (uint32_t id)
 Returns glyph by glyph id. More...
 
ASPOSE_FONT_SHARED_API System::ArrayPtr< System::SharedPtr< Aspose::Font::Glyphs::GlyphId > > GetAllGlyphIds () override
 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. More...
 
virtual ASPOSE_FONT_SHARED_API void GetGlyphComponentsById (System::SharedPtr< Aspose::Font::Glyphs::GlyphId > id, System::SharedPtr< Aspose::Font::Glyphs::GlyphIdList > componentsToPopulate)
 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. More...
 
ASPOSE_FONT_SHARED_API void GetGlyphComponentsById (System::String glyphName, System::SharedPtr< Aspose::Font::Glyphs::GlyphIdList > componentsToPopulate)
 Gets a glyph by glyph name passed and fills passed list of glyph identifiers with components of this glyph. More...
 
ASPOSE_FONT_SHARED_API void GetGlyphComponentsById (uint32_t id, System::SharedPtr< Aspose::Font::Glyphs::GlyphIdList > componentsToPopulate)
 Gets a glyph by glyph index passed and fills passed list of glyph identifiers with components of this glyph. More...
 
ASPOSE_FONT_SHARED_API System::ArrayPtr< System::SharedPtr< Aspose::Font::Glyphs::GlyphId > > GetGlyphsForText (System::String text) override
 Get glyphs representation for text. More...
 
ASPOSE_FONT_SHARED_API System::SharedPtr< Aspose::Font::FontConvert (Aspose::Font::FontType fontType) override
 Converts the Font into another format. More...
 
ASPOSE_FONT_SHARED_API System::SharedPtr< Aspose::Font::FontConvert (Aspose::Font::FontType fontType, System::SharedPtr< System::Collections::Generic::ICollection< uint32_t >> limitingCharacterSet)
 Converts the Font into another format with limiting character set More...
 
- Public Member Functions inherited from Aspose::Font::Font
ASPOSE_FONT_SHARED_API System::SharedPtr< Glyphs::IGlyphAccessorget_GlyphAccessor () override
 Font glyph accessor. Retrieves glyphs and glyph identifiers. More...
 
ASPOSE_FONT_SHARED_API System::SharedPtr< IFontSaverget_FontSaver () override
 Gets Font save functionality. More...
 
ASPOSE_FONT_SHARED_API void Save (System::SharedPtr< System::IO::Stream > stream) override
 Saves the Font into original format. More...
 
ASPOSE_FONT_SHARED_API void Save (System::String fileName) override
 Saves the Font into original format. More...
 
ASPOSE_FONT_SHARED_API void SaveToFormat (System::SharedPtr< System::IO::Stream > stream, FontSavingFormats outFormat) override
 Saves the Font into format specified. More...
 
ASPOSE_FONT_SHARED_API System::SharedPtr< Glyphs::GlyphGetGlyphById (System::SharedPtr< Glyphs::GlyphId > id) override=0
 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. More...
 
- Public Member Functions inherited from System::Object
ASPOSECPP_SHARED_API Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ASPOSECPP_SHARED_API ~Object ()
 Destroys object. Frees all internal data structures. More...
 
ASPOSECPP_SHARED_API Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared reference counter. More...
 
ASPOSECPP_SHARED_API void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
ASPOSECPP_SHARED_API void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual ASPOSECPP_SHARED_API int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual ASPOSECPP_SHARED_API String ToString () const
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual ASPOSECPP_SHARED_API void SetTemplateWeakPtr (uint32_t argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
virtual ASPOSECPP_SHARED_API bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool Equals (double const &objA, double const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 Specialization of Object::ReferenceEquals for case of string and nullptr. More...
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 Specialization of Object::ReferenceEquals for case of strings. More...
 
- Public Member Functions inherited from Aspose::Font::Glyphs::IGlyphAccessor
virtual System::SharedPtr< GlyphGetGlyphById (System::SharedPtr< GlyphId > id)=0
 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. More...
 
- Public Member Functions inherited from Aspose::Font::Licensing::IVentureLicenseTarget
virtual void SetVentureLicense (System::SharedPtr< VentureLicense > license)=0
 

Protected Member Functions

bool get_RequiresBytecodeHinting ()
 Returns true if the font requires hinting. More...
 
System::SharedPtr< Internals::TtfParserContext > get_AdoptedHintingFrom ()
 Font that provides hinting strustures More...
 
void set_AdoptedHintingFrom (System::SharedPtr< Internals::TtfParserContext > value)
 Font that provides hinting strustures More...
 
virtual ASPOSE_FONT_SHARED_API void set_TtfTables (System::SharedPtr< Aspose::Font::TtfTables::TtfTableRepository > value)
 Gets TTF tables. More...
 
ASPOSE_FONT_SHARED_API void set_FontNames (System::SharedPtr< MultiLanguageString > value) override
 Gets Font names. More...
 
ASPOSE_FONT_SHARED_API void set_PostscriptNames (System::SharedPtr< MultiLanguageString > value) override
 Gets Postscript Font names. More...
 
bool get_IsPdfOpenTypeExtension () const
 
void set_IsPdfOpenTypeExtension (bool value)
 
Aspose::Font::Ttf::Internals::OutlineType get_OutlineType () const
 
void set_OutlineType (Aspose::Font::Ttf::Internals::OutlineType value)
 
bool get_HasAdvancedTypographicTables ()
 The Advanced typographic tables (OpenType Layout tables) extend the functionality of fonts with either TrueType or CFF outlines. OpenType Layout fonts contain additional information that extends the capabilities of the fonts to support high-quality international typography. Current release supports such tables: GDEF, GPOS, GSUB More...
 
 TtfFont (System::SharedPtr< TtfFont > baseFont)
 Creates empty TTF font that adopt some important font characteristics More...
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (TtfFont, CODEPORTING_ARGS(System::SharedPtr< TtfFont > baseFont))
 
 TtfFont ()
 Creates empty TTF font object. More...
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (TtfFont, CODEPORTING_ARGS())
 
 TtfFont (System::SharedPtr< Aspose::Font::Sources::FontDefinition > fontDefinition, System::SharedPtr< Aspose::Font::TtfTables::TtfTableRepository > ttfTables)
 Internal constructor. A factory should be used to create the font More...
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (TtfFont, CODEPORTING_ARGS(System::SharedPtr< Aspose::Font::Sources::FontDefinition > fontDefinition, System::SharedPtr< Aspose::Font::TtfTables::TtfTableRepository > ttfTables))
 
void SetFontFamilyInternally (System::String value, bool isModifiedTable=false)
 Internal Font family setter. More...
 
void SetStyleInternally (System::String value, bool isModifiedTable=false)
 Internal Style setter. More...
 
void SetFontNameInternally (System::String value, bool isModifiedTable=false)
 Internal Font face name setter. More...
 
ASPOSE_FONT_SHARED_API System::SharedPtr< IFontSubsetDoSubset () override
 Creates font subset More...
 
uint16_t AddGlyph (System::SharedPtr< Aspose::Font::Glyphs::Glyph > glyph)
 Adds glyph to the font. Returns glyph index of the newly added glyph. More...
 
uint16_t CopyAllGlyphsForConverter (System::SharedPtr< Aspose::Font::Font > srcFont)
 Copy all array of glyphs from another font Release only for fonts with numeric indexing of glyphs More...
 
uint16_t CopyGlyphsSetForConverter (System::SharedPtr< Converters::CharacterAndGlyphSet > characterAndGlyphSet)
 
System::SharedPtr< Aspose::Font::Otl::AdvancedTypographicTables::OtlTextContext > GetGlyphContextForText (System::String text)
 Gets glyph's context for input text More...
 
uint32_t GlyphIdToUInt (System::SharedPtr< Aspose::Font::Glyphs::GlyphId > id)
 returns Glyph id as uint More...
 
void AddTable (System::String tableName, System::SharedPtr< Internals::TtfParserContext > context, uint32_t checkSum, uint32_t offset, uint32_t length)
 
virtual ASPOSE_FONT_SHARED_API ~TtfFont ()
 
- Protected Member Functions inherited from Aspose::Font::Font
System::SharedPtr< Rendering::FontRenderingContext > get_RenderingContext () const
 
bool get_IsVentureLicensed ()
 Gets venture licensed state of the object. Returns true if font has venture license and false otherwise. More...
 
System::SharedPtr< Common::LicenseControl::IFontLicenseController > get_LicenseController () const
 
 Font ()
 
void Save (System::SharedPtr< System::IO::Stream > stream, Font::FontSaveRequirements saveRequirements)
 
void Save (System::String fileName, Font::FontSaveRequirements saveRequirements)
 
void SetLicenseController (System::SharedPtr< Common::LicenseControl::IFontLicenseController > value)
 
virtual ASPOSE_FONT_SHARED_API ~Font ()
 

Static Protected Member Functions

static System::SharedPtr< Aspose::Font::FontCreate ()
 Creates new TTF font. More...
 
static System::SharedPtr< Aspose::Font::FontCreate (System::SharedPtr< Aspose::Font::Font > baseFont, System::SharedPtr< FontAdoptionOptions > fontAdoptionOptions)
 Creates new font based on other font. FontAdoptionOptions object defines a way how the baseFont is used with the new font creation. More...
 
static void RunFeatures (System::SharedPtr< TtfFont > Font, Aspose::Font::Otl::AdvancedTypographicTables::FeatureTypeEnum FeatureType, System::SharedPtr< Aspose::Font::Otl::AdvancedTypographicTables::OtlTextContext > Context, System::String ScriptName, Aspose::Font::Common::UnicodeRangesEnum ScriptType)
 
- Static Protected Member Functions inherited from Aspose::Font::Font
static System::SharedPtr< Aspose::Font::FontOpen (System::SharedPtr< IFontSource > fontSource, System::SharedPtr< Sources::IFontSearcher > fontSearchSpec)
 Opens a font: searches for the Font in font source, represented with IFontSource. More...
 
static System::SharedPtr< Aspose::Font::FontCreate (Aspose::Font::FontType fontType)
 Creates new font. More...
 
static System::SharedPtr< Aspose::Font::FontCreate (Aspose::Font::FontType fontType, System::SharedPtr< Aspose::Font::Font > baseFont, System::SharedPtr< FontAdoptionOptions > fontAdoptionOptions)
 Creates new font based on other font. FontAdoptionOptions object defines a way how the baseFont is used with the new font creation. More...
 
static void SplitSubsetFontName (System::String subsetFontName, System::String &fontName, System::String &subsetTag)
 Splits subset font name and returns font name and subset tag More...
 
static Aspose::Font::FontStyle ParseAndGeneralizeFontStyle (System::String fontStyle)
 Parsing the font style information More...
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
- Static Public Member Functions inherited from Aspose::Font::Font
static ASPOSE_FONT_SHARED_API System::SharedPtr< Aspose::Font::FontOpen (System::SharedPtr< Aspose::Font::Sources::FontDefinition > fontDefinition)
 Opens a font, using FontDefinition object. More...
 
static ASPOSE_FONT_SHARED_API System::SharedPtr< Aspose::Font::FontOpen (Aspose::Font::FontType fontType, System::SharedPtr< Sources::StreamSource > fontStreamSource)
 Opens a font, using font type and stream source. More...
 
static ASPOSE_FONT_SHARED_API System::SharedPtr< Aspose::Font::FontOpen (Aspose::Font::FontType fontType, System::String fileName)
 Opens a font, using font type and font file name. More...
 
static ASPOSE_FONT_SHARED_API System::SharedPtr< Aspose::Font::FontOpen (Aspose::Font::FontType fontType, System::ArrayPtr< uint8_t > fontData)
 Opens a font, using font type and font data byte array. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Implements C# typeof(System.Object) construct. More...
 
- Protected Types inherited from Aspose::Font::Font
enum  FontSaveRequirements : uint8_t { FontSaveRequirements::SaveAllTables, FontSaveRequirements::SavePdfTables }
 
- Protected Attributes inherited from Aspose::Font::Font
System::SharedPtr< Aspose::Font::Glyphs::GlyphsStatistic > GlyphsStatistic
 To hold statistic about glyphs operations More...
 

Detailed Description

Represents TrueType Font (TTF).

Constructor & Destructor Documentation

◆ TtfFont() [1/3]

Aspose::Font::Ttf::TtfFont::TtfFont ( System::SharedPtr< TtfFont baseFont)
protected

Creates empty TTF font that adopt some important font characteristics

Parameters
baseFont

◆ TtfFont() [2/3]

Aspose::Font::Ttf::TtfFont::TtfFont ( )
protected

Creates empty TTF font object.

◆ TtfFont() [3/3]

Aspose::Font::Ttf::TtfFont::TtfFont ( System::SharedPtr< Aspose::Font::Sources::FontDefinition fontDefinition,
System::SharedPtr< Aspose::Font::TtfTables::TtfTableRepository ttfTables 
)
protected

Internal constructor. A factory should be used to create the font

◆ ~TtfFont()

virtual ASPOSE_FONT_SHARED_API Aspose::Font::Ttf::TtfFont::~TtfFont ( )
protectedvirtual

Member Function Documentation

◆ AddGlyph()

uint16_t Aspose::Font::Ttf::TtfFont::AddGlyph ( System::SharedPtr< Aspose::Font::Glyphs::Glyph glyph)
protected

Adds glyph to the font. Returns glyph index of the newly added glyph.

Parameters
glyphglyph to add
Returns
glyph index of the newly added glyph

◆ AddTable()

void Aspose::Font::Ttf::TtfFont::AddTable ( System::String  tableName,
System::SharedPtr< Internals::TtfParserContext >  context,
uint32_t  checkSum,
uint32_t  offset,
uint32_t  length 
)
protected

◆ Convert() [1/2]

ASPOSE_FONT_SHARED_API System::SharedPtr<Aspose::Font::Font> Aspose::Font::Ttf::TtfFont::Convert ( Aspose::Font::FontType  fontType)
overridevirtual

Converts the Font into another format.

Note: TTF Font type is now supported only.

Parameters
fontTypeFont format type to convert into.
Returns
Font converted into new format.

Implements Aspose::Font::Font.

◆ Convert() [2/2]

ASPOSE_FONT_SHARED_API System::SharedPtr<Aspose::Font::Font> Aspose::Font::Ttf::TtfFont::Convert ( Aspose::Font::FontType  fontType,
System::SharedPtr< System::Collections::Generic::ICollection< uint32_t >>  limitingCharacterSet 
)

Converts the Font into another format with limiting character set

Note: TTF Font type is now supported only.

Parameters
fontTypeFont format type to convert into.
limitingCharacterSetLimiting character set.
Returns
Font converted into new format.

◆ CopyAllGlyphsForConverter()

uint16_t Aspose::Font::Ttf::TtfFont::CopyAllGlyphsForConverter ( System::SharedPtr< Aspose::Font::Font srcFont)
protected

Copy all array of glyphs from another font Release only for fonts with numeric indexing of glyphs

Parameters
srcFont

◆ CopyGlyphsSetForConverter()

uint16_t Aspose::Font::Ttf::TtfFont::CopyGlyphsSetForConverter ( System::SharedPtr< Converters::CharacterAndGlyphSet >  characterAndGlyphSet)
protected

◆ Create() [1/2]

static System::SharedPtr<Aspose::Font::Font> Aspose::Font::Ttf::TtfFont::Create ( )
staticprotected

Creates new TTF font.

Returns
new font

◆ Create() [2/2]

static System::SharedPtr<Aspose::Font::Font> Aspose::Font::Ttf::TtfFont::Create ( System::SharedPtr< Aspose::Font::Font baseFont,
System::SharedPtr< FontAdoptionOptions >  fontAdoptionOptions 
)
staticprotected

Creates new font based on other font. FontAdoptionOptions object defines a way how the baseFont is used with the new font creation.

Parameters
baseFontfont to take settings from
fontAdoptionOptionsoptions to manage how the baseFont settings affects new font settings
Returns
new font

◆ DoSubset()

ASPOSE_FONT_SHARED_API System::SharedPtr<IFontSubset> Aspose::Font::Ttf::TtfFont::DoSubset ( )
overrideprotectedvirtual

Creates font subset

Returns
subset created

Implements Aspose::Font::Font.

◆ get_AdoptedHintingFrom()

System::SharedPtr<Internals::TtfParserContext> Aspose::Font::Ttf::TtfFont::get_AdoptedHintingFrom ( )
protected

Font that provides hinting strustures

◆ get_CffFont()

virtual ASPOSE_FONT_SHARED_API System::SharedPtr<Aspose::Font::Font> Aspose::Font::Ttf::TtfFont::get_CffFont ( )
virtual

Gets CFF Font if present.

◆ get_Encoding()

ASPOSE_FONT_SHARED_API System::SharedPtr<IFontEncoding> Aspose::Font::Ttf::TtfFont::get_Encoding ( )
overridevirtual

Gets Font encoding.

Implements Aspose::Font::Font.

◆ get_FontDefinition()

ASPOSE_FONT_SHARED_API System::SharedPtr<Aspose::Font::Sources::FontDefinition> Aspose::Font::Ttf::TtfFont::get_FontDefinition ( )
overridevirtual

Gets Font definition.

Implements Aspose::Font::Font.

◆ get_FontFamily()

ASPOSE_FONT_SHARED_API System::String Aspose::Font::Ttf::TtfFont::get_FontFamily ( )
overridevirtual

Gets or Sets Font family.

Implements Aspose::Font::Font.

◆ get_FontName()

ASPOSE_FONT_SHARED_API System::String Aspose::Font::Ttf::TtfFont::get_FontName ( )
overridevirtual

Gets or Sets Font face name.

Implements Aspose::Font::Font.

◆ get_FontNames()

ASPOSE_FONT_SHARED_API System::SharedPtr<MultiLanguageString> Aspose::Font::Ttf::TtfFont::get_FontNames ( )
overridevirtual

Gets Font names.

Implements Aspose::Font::Font.

◆ get_FontStyle()

ASPOSE_FONT_SHARED_API Aspose::Font::FontStyle Aspose::Font::Ttf::TtfFont::get_FontStyle ( )
overridevirtual

Gets Font style. This is a value computed and represented in generalized type.

Implements Aspose::Font::Font.

◆ get_FontType()

ASPOSE_FONT_SHARED_API Aspose::Font::FontType Aspose::Font::Ttf::TtfFont::get_FontType ( )
overridevirtual

Gets Font type. Returns FontType.TTF value.

Implements Aspose::Font::Font.

◆ get_GlyphIdType()

ASPOSE_FONT_SHARED_API Aspose::Font::Glyphs::GlyphIdType Aspose::Font::Ttf::TtfFont::get_GlyphIdType ( )
overridevirtual

Gets glyph id type specification.

Implements Aspose::Font::Font.

◆ get_HasAdvancedTypographicTables()

bool Aspose::Font::Ttf::TtfFont::get_HasAdvancedTypographicTables ( )
protected

The Advanced typographic tables (OpenType Layout tables) extend the functionality of fonts with either TrueType or CFF outlines. OpenType Layout fonts contain additional information that extends the capabilities of the fonts to support high-quality international typography. Current release supports such tables: GDEF, GPOS, GSUB

◆ get_IsPdfOpenTypeExtension()

bool Aspose::Font::Ttf::TtfFont::get_IsPdfOpenTypeExtension ( ) const
protected

◆ get_IsSymbolic()

ASPOSE_FONT_SHARED_API bool Aspose::Font::Ttf::TtfFont::get_IsSymbolic ( )

Returns true in case Font is symbolic.

◆ get_Metrics()

ASPOSE_FONT_SHARED_API System::SharedPtr<IFontMetrics> Aspose::Font::Ttf::TtfFont::get_Metrics ( )
overridevirtual

Gets Font metrics.

Implements Aspose::Font::Font.

◆ get_NumGlyphs()

ASPOSE_FONT_SHARED_API int32_t Aspose::Font::Ttf::TtfFont::get_NumGlyphs ( )
overridevirtual

Gets number of glyphs in the Font.

Implements Aspose::Font::Font.

◆ get_OutlineType()

Aspose::Font::Ttf::Internals::OutlineType Aspose::Font::Ttf::TtfFont::get_OutlineType ( ) const
protected

◆ get_PostscriptNames()

ASPOSE_FONT_SHARED_API System::SharedPtr<MultiLanguageString> Aspose::Font::Ttf::TtfFont::get_PostscriptNames ( )
overridevirtual

Gets Postscript Font names.

Implements Aspose::Font::Font.

◆ get_RequiresBytecodeHinting()

bool Aspose::Font::Ttf::TtfFont::get_RequiresBytecodeHinting ( )
protected

Returns true if the font requires hinting.

This is actual for some tricky fonts that perform composite glyphs alignment with bytecode instructions.

◆ get_Style()

ASPOSE_FONT_SHARED_API System::String Aspose::Font::Ttf::TtfFont::get_Style ( )
overridevirtual

Gets or Sets Font style. This is a raw string value provided by Font file.

Implements Aspose::Font::Font.

◆ get_TtfTables()

virtual ASPOSE_FONT_SHARED_API System::SharedPtr<Aspose::Font::TtfTables::TtfTableRepository> Aspose::Font::Ttf::TtfFont::get_TtfTables ( )
virtual

Gets TTF tables.

◆ GetAllGlyphIds()

ASPOSE_FONT_SHARED_API System::ArrayPtr<System::SharedPtr<Aspose::Font::Glyphs::GlyphId> > Aspose::Font::Ttf::TtfFont::GetAllGlyphIds ( )
overridevirtual

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.

Returns
Glyph identifiers.

Implements Aspose::Font::Font.

◆ GetGlyphById() [1/3]

ASPOSE_FONT_SHARED_API System::SharedPtr<Aspose::Font::Glyphs::Glyph> Aspose::Font::Ttf::TtfFont::GetGlyphById ( System::SharedPtr< Aspose::Font::Glyphs::GlyphId id)
override

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.

Parameters
idGlyph id.
Returns
Glyph.

◆ GetGlyphById() [2/3]

ASPOSE_FONT_SHARED_API System::SharedPtr<Aspose::Font::Glyphs::Glyph> Aspose::Font::Ttf::TtfFont::GetGlyphById ( System::String  glyphName)

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.

Parameters
glyphNameGlyph string identifier.
Returns
Glyph.

◆ GetGlyphById() [3/3]

ASPOSE_FONT_SHARED_API System::SharedPtr<Aspose::Font::Glyphs::Glyph> Aspose::Font::Ttf::TtfFont::GetGlyphById ( uint32_t  id)

Returns glyph by glyph id.

Parameters
idGlyph index.
Returns
Glyph.

◆ GetGlyphComponentsById() [1/3]

virtual ASPOSE_FONT_SHARED_API void Aspose::Font::Ttf::TtfFont::GetGlyphComponentsById ( System::SharedPtr< Aspose::Font::Glyphs::GlyphId id,
System::SharedPtr< Aspose::Font::Glyphs::GlyphIdList componentsToPopulate 
)
virtual

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.

Empty collection componentsToPopulate should be passed that will contain glyph components id list.

Parameters
idGlyph id.
componentsToPopulateList of glyph identifiers to fill.

◆ GetGlyphComponentsById() [2/3]

ASPOSE_FONT_SHARED_API void Aspose::Font::Ttf::TtfFont::GetGlyphComponentsById ( System::String  glyphName,
System::SharedPtr< Aspose::Font::Glyphs::GlyphIdList componentsToPopulate 
)

Gets a glyph by glyph name passed and fills passed list of glyph identifiers with components of this glyph.

Empty collection componentsToPopulate should be passed that will contain glyph components id list.

Parameters
glyphNameGlyph name.
componentsToPopulateList of glyph identifiers to fill.

◆ GetGlyphComponentsById() [3/3]

ASPOSE_FONT_SHARED_API void Aspose::Font::Ttf::TtfFont::GetGlyphComponentsById ( uint32_t  id,
System::SharedPtr< Aspose::Font::Glyphs::GlyphIdList componentsToPopulate 
)

Gets a glyph by glyph index passed and fills passed list of glyph identifiers with components of this glyph.

Empty collection componentsToPopulate should be passed that will contain glyph components id list.

Parameters
idGlyph index.
componentsToPopulateList of glyph identifiers to fill.

◆ GetGlyphContextForText()

System::SharedPtr<Aspose::Font::Otl::AdvancedTypographicTables::OtlTextContext> Aspose::Font::Ttf::TtfFont::GetGlyphContextForText ( System::String  text)
protected

Gets glyph's context for input text

Parameters
textinput text
Returns
glyph context

◆ GetGlyphsForText()

ASPOSE_FONT_SHARED_API System::ArrayPtr<System::SharedPtr<Aspose::Font::Glyphs::GlyphId> > Aspose::Font::Ttf::TtfFont::GetGlyphsForText ( System::String  text)
overridevirtual

Get glyphs representation for text.

Parameters
textInput text.
Returns
GlyphId array.

Reimplemented from Aspose::Font::Font.

◆ GlyphIdToUInt()

uint32_t Aspose::Font::Ttf::TtfFont::GlyphIdToUInt ( System::SharedPtr< Aspose::Font::Glyphs::GlyphId id)
protected

returns Glyph id as uint

the passed ID can be GlyphUInt32Id or GlyphStringId

Parameters
id
Returns

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [1/3]

Aspose::Font::Ttf::TtfFont::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( TtfFont  ,
CODEPORTING_ARGS(System::SharedPtr< TtfFont > baseFont)   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [2/3]

Aspose::Font::Ttf::TtfFont::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( TtfFont  ,
CODEPORTING_ARGS()   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [3/3]

Aspose::Font::Ttf::TtfFont::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( TtfFont  ,
CODEPORTING_ARGS(System::SharedPtr< Aspose::Font::Sources::FontDefinition > fontDefinition, System::SharedPtr< Aspose::Font::TtfTables::TtfTableRepository > ttfTables)   
)
protected

◆ RunFeatures()

static void Aspose::Font::Ttf::TtfFont::RunFeatures ( System::SharedPtr< TtfFont Font,
Aspose::Font::Otl::AdvancedTypographicTables::FeatureTypeEnum  FeatureType,
System::SharedPtr< Aspose::Font::Otl::AdvancedTypographicTables::OtlTextContext >  Context,
System::String  ScriptName,
Aspose::Font::Common::UnicodeRangesEnum  ScriptType 
)
staticprotected

◆ set_AdoptedHintingFrom()

void Aspose::Font::Ttf::TtfFont::set_AdoptedHintingFrom ( System::SharedPtr< Internals::TtfParserContext >  value)
protected

Font that provides hinting strustures

◆ set_FontFamily()

ASPOSE_FONT_SHARED_API void Aspose::Font::Ttf::TtfFont::set_FontFamily ( System::String  value)
overridevirtual

Gets or Sets Font family.

Implements Aspose::Font::Font.

◆ set_FontName()

ASPOSE_FONT_SHARED_API void Aspose::Font::Ttf::TtfFont::set_FontName ( System::String  value)
overridevirtual

Gets or Sets Font face name.

Implements Aspose::Font::Font.

◆ set_FontNames()

ASPOSE_FONT_SHARED_API void Aspose::Font::Ttf::TtfFont::set_FontNames ( System::SharedPtr< MultiLanguageString value)
overrideprotectedvirtual

Gets Font names.

Implements Aspose::Font::Font.

◆ set_IsPdfOpenTypeExtension()

void Aspose::Font::Ttf::TtfFont::set_IsPdfOpenTypeExtension ( bool  value)
protected

◆ set_OutlineType()

void Aspose::Font::Ttf::TtfFont::set_OutlineType ( Aspose::Font::Ttf::Internals::OutlineType  value)
protected

◆ set_PostscriptNames()

ASPOSE_FONT_SHARED_API void Aspose::Font::Ttf::TtfFont::set_PostscriptNames ( System::SharedPtr< MultiLanguageString value)
overrideprotectedvirtual

Gets Postscript Font names.

Implements Aspose::Font::Font.

◆ set_Style()

ASPOSE_FONT_SHARED_API void Aspose::Font::Ttf::TtfFont::set_Style ( System::String  value)
overridevirtual

Gets or Sets Font style. This is a raw string value provided by Font file.

Implements Aspose::Font::Font.

◆ set_TtfTables()

virtual ASPOSE_FONT_SHARED_API void Aspose::Font::Ttf::TtfFont::set_TtfTables ( System::SharedPtr< Aspose::Font::TtfTables::TtfTableRepository value)
protectedvirtual

Gets TTF tables.

◆ SetFontFamilyInternally()

void Aspose::Font::Ttf::TtfFont::SetFontFamilyInternally ( System::String  value,
bool  isModifiedTable = false 
)
protected

Internal Font family setter.

Parameters
valueNew Font family.
isModifiedTableModified table flag.

◆ SetFontNameInternally()

void Aspose::Font::Ttf::TtfFont::SetFontNameInternally ( System::String  value,
bool  isModifiedTable = false 
)
protected

Internal Font face name setter.

Parameters
valueNew Font face name.
isModifiedTableModified table flag.

◆ SetStyleInternally()

void Aspose::Font::Ttf::TtfFont::SetStyleInternally ( System::String  value,
bool  isModifiedTable = false 
)
protected

Internal Style setter.

Parameters
valueNew style.
isModifiedTableModified table flag.