طريقة Aspose::Font::Ttf::TtfFont::GetGlyphById

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

تُرجِع الحرف بناءً على معرف الحرف. معرف الحرف هو رقم فريد لكل حرف، يعتمد على نوع الخط. يمكن أن يكون معرف حرف TTF Font مثالًا على الفئة (GlyphStringId) أو الفئة (GlyphUInt32Id). يتم دعم عنونة الحرف بالاسم (string) للخطوط TTF عبر تعيين جدول Post. في حالة وجود Font CFF داخل، تُستخدم هياكل CFF لعناوين الحروف بالاسم.

System::SharedPtr<Glyphs::Glyph> Aspose::Font::Ttf::TtfFont::GetGlyphById(System::SharedPtr<Glyphs::GlyphId> id) override
معاملنوعالوصف
المعرّفSystem::SharedPtr<Glyphs::GlyphId>معرّف الشكل.

ReturnValue

الحرف.

انظر أيضًا

TtfFont::GetGlyphById(System::String) method

تُرجِع الحرف بناءً على اسم الحرف. يتم دعم عنونة الحرف بالاسم (string) للخطوط TTF عبر تعيين جدول Post. في حالة وجود Font CFF داخل، تُستخدم هياكل CFF لعناوين الحروف بالاسم.

System::SharedPtr<Glyphs::Glyph> Aspose::Font::Ttf::TtfFont::GetGlyphById(System::String glyphName)
معاملنوعالوصف
glyphNameSystem::Stringمعرف سلسلة الحرف.

ReturnValue

الحرف.

انظر أيضًا

TtfFont::GetGlyphById(uint32_t) method

يرجع الرمز بناءً على معرف الرمز.

System::SharedPtr<Glyphs::Glyph> Aspose::Font::Ttf::TtfFont::GetGlyphById(uint32_t id)
معاملنوعالوصف
المعرّفuint32_tفهرس الشكل.

ReturnValue

الحرف.

انظر أيضًا