Aspose::Font::TtfHelpers::IFontCharactersMerger::MergeFonts طريقة
IFontCharactersMerger::MergeFonts(System::ArrayPtr<System::SharedPtr<Glyphs::GlyphId>>, System::ArrayPtr<System::SharedPtr<Glyphs::GlyphId>>, System::String) method
يدمج الخطوط بناءً على قوائم الحروف المرسلة. يبحث عن رمز حرف لكل حرف مرسل ويضيف رمز الحرف المكتشف مع الحرف المقابل إلى الخط الجديد الناتج.
virtual System::SharedPtr<Ttf::TtfFont> Aspose::Font::TtfHelpers::IFontCharactersMerger::MergeFonts(System::ArrayPtr<System::SharedPtr<Glyphs::GlyphId>> font1Glyphs, System::ArrayPtr<System::SharedPtr<Glyphs::GlyphId>> font2Glyphs, System::String newFontName)=0
| معامل | نوع | الوصف |
|---|---|---|
| font1Glyphs | System::ArrayPtr<System::SharedPtr<Glyphs::GlyphId>> | قائمة القوالب من الخط الأول |
| font2Glyphs | System::ArrayPtr<System::SharedPtr<Glyphs::GlyphId>> | قائمة القوالب من الخط الثاني |
| newFontName | System::String | الاسم المطلوب للخط الناتج |
ReturnValue
خط مدمج
انظر أيضًا
- Typedef SharedPtr
- Class TtfFont
- Typedef ArrayPtr
- Class GlyphId
- Class String
- Class IFontCharactersMerger
- Namespace Aspose::Font::TtfHelpers
- Library Aspose.Font for C++
IFontCharactersMerger::MergeFonts(System::ArrayPtr<uint32_t>, System::ArrayPtr<uint32_t>, System::String) method
يدمج الخطوط بناءً على قوائم رموز الأحرف الممررة. لإنشاء الخط الناتج المطلوب، ما عليك سوى تمرير رموز الرموز (symbol codes) من الخطوط الأصلية التي تريد تضمينها في الخط الناتج. سيتم العثور تلقائيًا على Glyphs المرتبطة بالرموز الممررة. على سبيل المثال، إذا كنت تريد تضمين glyphs المرتبطة بالحروف A و B من الخط الأول و glyphs المرتبطة بالحروف C و D من الخط الثاني، فقط استدعِ هذه الطريقة هكذا: MergeFonts(new uint[] { ‘A’, ‘B’ }, new uint[] { ‘C’, ‘D’ }, "NewFont")
virtual System::SharedPtr<Ttf::TtfFont> Aspose::Font::TtfHelpers::IFontCharactersMerger::MergeFonts(System::ArrayPtr<uint32_t> font1CharCodes, System::ArrayPtr<uint32_t> font2CharCodes, System::String newFontName)=0
| معامل | نوع | الوصف |
|---|---|---|
| font1CharCodes | System::ArrayPtr<uint32_t> | الرموز التي سيتم أخذها من الخط الأول |
| font2CharCodes | System::ArrayPtr<uint32_t> | الرموز التي سيتم أخذها من الخط الثاني |
| newFontName | System::String | الاسم المطلوب للخط الناتج |
ReturnValue
خط مدمج
انظر أيضًا
- Typedef SharedPtr
- Class TtfFont
- Typedef ArrayPtr
- Class String
- Class IFontCharactersMerger
- Namespace Aspose::Font::TtfHelpers
- Library Aspose.Font for C++
IFontCharactersMerger::MergeFonts(System::SharedPtr<System::Collections::Generic::IDictionary<uint32_t, System::SharedPtr<Glyphs::GlyphId>>>, System::SharedPtr<System::Collections::Generic::IDictionary<uint32_t, System::SharedPtr<Glyphs::GlyphId>>>, System::String) method
تم تصميم نسخة هذه الطريقة للحالات التي تريد فيها تعيين رموز الحروف للرموز (glyphs) في الخط الناتج بشكل صريح. ليس من الضروري أن يكون الرمز للرمز (glyph) الذي قدمته موجودًا في الخط الأصلي. معنى الرمز الممرر هو أنه سيُربط بمعرف الرمز المقابل في الخط الناتج. لذلك، القاعدة لمعالجة كل زوج يُمرر عبر معلمة القاموس [code, glyph identifier] هي أن معرف الرمز فقط سيُؤخذ من الخط الأصلي ثم يُربط بالرمز المقابل في الخط الناتج. يمكن أن يكون ذلك مفيدًا عندما تتعارض بعض الرموز من الخط الأول مع نفس الرموز من الخط الثاني.
virtual System::SharedPtr<Ttf::TtfFont> Aspose::Font::TtfHelpers::IFontCharactersMerger::MergeFonts(System::SharedPtr<System::Collections::Generic::IDictionary<uint32_t, System::SharedPtr<Glyphs::GlyphId>>> font1Dict, System::SharedPtr<System::Collections::Generic::IDictionary<uint32_t, System::SharedPtr<Glyphs::GlyphId>>> font2Dict, System::String newFontName)=0
| معامل | نوع | الوصف |
|---|---|---|
| font1Dict | System::SharedPtr<System::Collections::Generic::IDictionary<uint32_t, System::SharedPtr<Glyphs::GlyphId>>> | قاموس يحتوي على أزواج [symbol code, glyph identifier] من الخط الأول |
| font2Dict | System::SharedPtr<System::Collections::Generic::IDictionary<uint32_t, System::SharedPtr<Glyphs::GlyphId>>> | قاموس يحتوي على أزواج [symbol code, glyph identifier] من الخط الثاني |
| newFontName | System::String | الاسم المطلوب للخط الناتج |
ReturnValue
خط مدمج
انظر أيضًا
- Typedef SharedPtr
- Class TtfFont
- Class IDictionary
- Class GlyphId
- Class String
- Class IFontCharactersMerger
- Namespace Aspose::Font::TtfHelpers
- Library Aspose.Font for C++