Aspose::Font::Ttf::TtfFont::GetGlyphById method

TtfFont::GetGlyphById(System::SharedPtr<Aspose::Font::Glyphs::GlyphId>) method

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.

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

ReturnValue

Glyph.

See Also

TtfFont::GetGlyphById(System::String) method

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.

System::SharedPtr<Aspose::Font::Glyphs::Glyph> Aspose::Font::Ttf::TtfFont::GetGlyphById(System::String glyphName)
ParameterTypeDescription
glyphNameSystem::StringGlyph string identifier.

ReturnValue

Glyph.

See Also

TtfFont::GetGlyphById(uint32_t) method

Returns glyph by glyph id.

System::SharedPtr<Aspose::Font::Glyphs::Glyph> Aspose::Font::Ttf::TtfFont::GetGlyphById(uint32_t id)
ParameterTypeDescription
iduint32_tGlyph index.

ReturnValue

Glyph.

See Also