TtfFont
Inheritance: java.lang.Object, com.aspose.font.Font
public class TtfFont extends Font
يمثل خط TrueType (TTF).
الطرق
| طريقة | الوصف |
|---|---|
| convert(FontType fontType) | يقوم بتحويل الخط إلى تنسيق آخر. |
| convert(FontType fontType, Collection | يقوم بتحويل الخط إلى تنسيق آخر مع مجموعة أحرف محدودة ملاحظة: نوع خط TTF مدعوم الآن فقط. |
| equals(Object arg0) | |
| getAllGlyphIds() | يعيد مصفوفة جميع معرّفات الرموز المتاحة في الخط. |
| getCffFont() | يحصل على خط CFF إذا كان موجودًا. |
| getClass() | |
| getEncoding() | يحصل على ترميز الخط. |
| getFontDefinition() | يحصل على تعريف الخط. |
| getFontFamily() | يحصل على عائلة الخط. |
| getFontName() | يحصل على اسم واجهة الخط. |
| getFontNames() | يحصل على أسماء الخط. |
| getFontSaver() | يحصل على وظيفة حفظ الخط. |
| getFontStyle() | يحصل على نمط الخط. |
| getFontType() | يحصل على نوع الخط. |
| getGlyphAccessor() | الوصول إلى رموز الخط. |
| getGlyphById(GlyphId id) | يعيد الرمز حسب معرّف الرمز. |
| getGlyphById(String glyphName) | يعيد الرمز حسب اسم الرمز. |
| getGlyphById(long id) | يعيد الرمز حسب معرّف الرمز. |
| getGlyphComponentsById(GlyphId id, GlyphIdList componentsToPopulate) | يحصل على رمز وفقًا لمعرّف الرمز الممرّر ويملأ القائمة الممرّرة لمعرّفات الرموز بمكوّنات هذا الرمز. |
| getGlyphComponentsById(String glyphName, GlyphIdList componentsToPopulate) | يحصل على رمز وفقًا لاسم الرمز الممرّر ويملأ القائمة الممرّرة لمعرّفات الرموز بمكوّنات هذا الرمز. |
| getGlyphComponentsById(long id, GlyphIdList componentsToPopulate) | يحصل على رمز وفقًا لفهرس الرمز الممرّر ويملأ القائمة الممرّرة لمعرّفات الرموز بمكوّنات هذا الرمز. |
| getGlyphIdType() | يحصل على مواصفات نوع معرّف الرمز. |
| getGlyphsForText(String text) | احصل على تمثيل الرموز للنص. |
| getMetrics() | يحصل على مقاييس الخط. |
| getNumGlyphs() | يحصل على عدد الرموز في الخط. |
| getPostscriptNames() | يحصل على أسماء خطوط Postscript. |
| getStyle() | يحصل على نمط الخط. |
| getTtfTables() | يحصل على جداول TTF. |
| hashCode() | |
| isSymbolic() | يرجع true في حالة كون الخط رمزيًا. |
| notify() | |
| notifyAll() | |
| open(FontDefinition fontDefinition) | يفتح خطًا باستخدام كائن FontDefinition. |
| open(FontType fontType, byte[] fontData) | يفتح خطًا باستخدام نوع الخط ومصفوفة بايتات بيانات الخط. |
| open(FontType fontType, StreamSource fontStreamSource) | يفتح خطًا باستخدام نوع الخط ومصدر الدفق. |
| open(FontType fontType, String fileName) | يفتح خطًا باستخدام نوع الخط واسم ملف الخط. |
| save(OutputStream stream) | يحفظ الخط بالتنسيق الأصلي. |
| save(String fileName) | يحفظ الخط بالتنسيق الأصلي. |
| saveToFormat(OutputStream stream, FontSavingFormats outFormat) | يحفظ الخط بالتنسيق المحدد. |
| setFontFamily(String value) | يضبط عائلة الخط. |
| setFontName(String value) | يضبط اسم وجه الخط. |
| setStyle(String value) | يضبط نمط الخط. |
| toString() | |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
convert(FontType fontType)
public Font convert(FontType fontType)
يحوّل الخط إلى تنسيق آخر. ملاحظة: نوع خط TTF مدعوم الآن فقط.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| fontType | FontType | نوع تنسيق الخط للتحويل إليه. |
Returns: Font - Font converted into new format.
convert(FontType fontType, Collection limitingCharacterSet)
public Font convert(FontType fontType, Collection<Integer> limitingCharacterSet)
يقوم بتحويل الخط إلى تنسيق آخر مع مجموعة أحرف محدودة ملاحظة: نوع خط TTF مدعوم الآن فقط.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| fontType | FontType | نوع تنسيق الخط للتحويل إليه. |
| limitingCharacterSet | java.util.Collection<java.lang.Integer> | مجموعة الأحرف المحدودة. |
Returns: Font - Font converted into new format.
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
getAllGlyphIds()
public GlyphId[] getAllGlyphIds()
يرجع مصفوفة من جميع معرفات الرموز المتاحة في الخط. معرف الرمز هو رقم فريد للرمز، يعتمد على نوع الخط. يمكن أن يكون معرف رمز خط TTF مثالًا على الفئة ( GlyphStringId ) أو الفئة ( GlyphUInt32Id ). دعم عنوان الرموز بالاسم (string) متاح لخطوط TTF عبر تعيين جدول Post. في حالة وجود خط CFF داخل، تُستخدم هياكل CFF لتحديد الرموز بالاسم.
Returns: com.aspose.font.GlyphId[] - معرفات الرموز.
getCffFont()
public Font getCffFont()
يحصل على خط CFF إذا كان موجودًا.
Returns: Font - CFF Font.
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getEncoding()
public IFontEncoding getEncoding()
يحصل على ترميز الخط.
Returns: IFontEncoding - Font encoding.
getFontDefinition()
public FontDefinition getFontDefinition()
يحصل على تعريف الخط.
Returns: FontDefinition - Font definition.
getFontFamily()
public String getFontFamily()
يحصل على عائلة الخط.
Returns: java.lang.String - عائلة الخط.
getFontName()
public String getFontName()
يحصل على اسم واجهة الخط.
Returns: java.lang.String - اسم وجه الخط.
getFontNames()
public MultiLanguageString getFontNames()
يحصل على أسماء الخط.
Returns: MultiLanguageString - Font names
getFontSaver()
public IFontSaver getFontSaver()
يحصل على وظيفة حفظ الخط.
Returns: IFontSaver - Font save functionality.
getFontStyle()
public int getFontStyle()
يحصل على نمط الخط. هذه قيمة محسوبة وممثلة بنوع عام.
Returns: int - نمط الخط. عادةً، مزيج من قيم أعلام ثابتة لفئة FontStyle أو 0.
getFontType()
public FontType getFontType()
يحصل على نوع الخط. يرجع قيمة FontType.TTF.
Returns: FontType - Font type.
getGlyphAccessor()
public IGlyphAccessor getGlyphAccessor()
مستخرج رموز الخط. يسترجع الرموز ومعرفات الرموز.
Returns: IGlyphAccessor - Font glyph accessor.
getGlyphById(GlyphId id)
public Glyph getGlyphById(GlyphId id)
يُعيد الرمز وفقًا لمعرف الرمز. معرف الرمز هو رقم فريد للرمز، يعتمد على نوع الخط. يمكن أن يكون معرف رمز خط TTF مثالًا على فئة ( GlyphStringId ) أو فئة ( GlyphUInt32Id ). يتم دعم عنونة الرموز بالاسم (string) لخطوط TTF عبر تعيين جدول Post. في حالة وجود خط CFF، تُستخدم هياكل CFF لعناوين الرموز بالاسم.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| id | GlyphId |
Returns: Glyph
getGlyphById(String glyphName)
public Glyph getGlyphById(String glyphName)
يُعيد الرمز وفقًا لاسم الرمز. يتم دعم عنونة الرموز بالاسم (string) لخطوط TTF عبر تعيين جدول Post. في حالة وجود خط CFF، تُستخدم هياكل CFF لعناوين الرموز بالاسم.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| glyphName | java.lang.String | معرف سلسلة الرمز. |
Returns: Glyph - Glyph.
getGlyphById(long id)
public Glyph getGlyphById(long id)
يعيد الرمز حسب معرّف الرمز.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| معرف | long | فهرس الرمز. |
Returns: Glyph - Glyph.
getGlyphComponentsById(GlyphId id, GlyphIdList componentsToPopulate)
public void getGlyphComponentsById(GlyphId id, GlyphIdList componentsToPopulate)
يحصل على رمز وفقًا لمعرف الرمز الممرر ويملأ القائمة الممررة لمعرفات الرموز بمكونات هذا الرمز. معرف الرمز هو رقم فريد للرمز، يعتمد على نوع الخط. يمكن أن يكون معرف رمز خط TTF مثالًا على فئة ( GlyphStringId ) أو فئة ( GlyphUInt32Id ). يتم دعم عنونة الرموز بالاسم (string) لخطوط TTF عبر تعيين جدول Post. في حالة وجود خط CFF، تُستخدم هياكل CFF لعناوين الرموز بالاسم.
يجب تمرير مجموعة فارغة componentsToPopulate التي ستحتوي على قائمة معرفات مكونات الرموز.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| id | GlyphId | معرف الرمز. |
| componentsToPopulate | GlyphIdList | قائمة بمعرفات الرموز للتعبئة. |
getGlyphComponentsById(String glyphName, GlyphIdList componentsToPopulate)
public void getGlyphComponentsById(String glyphName, GlyphIdList componentsToPopulate)
يحصل على رمز وفقًا لاسم الرمز الممرّر ويملأ القائمة الممرّرة لمعرّفات الرموز بمكوّنات هذا الرمز.
يجب تمرير مجموعة فارغة componentsToPopulate التي ستحتوي على قائمة معرفات مكونات الرموز.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| glyphName | java.lang.String | اسم الرمز. |
| componentsToPopulate | GlyphIdList | قائمة بمعرفات الرموز للتعبئة. |
getGlyphComponentsById(long id, GlyphIdList componentsToPopulate)
public void getGlyphComponentsById(long id, GlyphIdList componentsToPopulate)
يحصل على رمز وفقًا لفهرس الرمز الممرّر ويملأ القائمة الممرّرة لمعرّفات الرموز بمكوّنات هذا الرمز.
يجب تمرير مجموعة فارغة componentsToPopulate التي ستحتوي على قائمة معرفات مكونات الرموز.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| معرف | long | فهرس الرمز. |
| componentsToPopulate | GlyphIdList | قائمة بمعرفات الرموز للتعبئة. |
getGlyphIdType()
public GlyphIdType getGlyphIdType()
يحصل على مواصفات نوع معرّف الرمز.
Returns: GlyphIdType - Glyph id type specification.
getGlyphsForText(String text)
public GlyphId[] getGlyphsForText(String text)
احصل على تمثيل الرموز للنص.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| text | java.lang.String | نص الإدخال. |
Returns: com.aspose.font.GlyphId[] - مصفوفة GlyphId.
getMetrics()
public IFontMetrics getMetrics()
يحصل على مقاييس الخط.
Returns: IFontMetrics - Font metrics.
getNumGlyphs()
public int getNumGlyphs()
يحصل على عدد الرموز في الخط.
Returns: int - عدد الرموز في الخط.
getPostscriptNames()
public MultiLanguageString getPostscriptNames()
يحصل على أسماء خطوط Postscript.
Returns: MultiLanguageString - Postscript font names.
getStyle()
public String getStyle()
يحصل على نمط الخط. هذه قيمة سلسلة خام مقدمة من ملف الخط.
Returns: java.lang.String - نمط الخط.
getTtfTables()
public TtfTableRepository getTtfTables()
يحصل على جداول TTF.
Returns: TtfTableRepository - TTF tables.
hashCode()
public native int hashCode()
Returns: int
isSymbolic()
public boolean isSymbolic()
يرجع true في حالة كون الخط رمزيًا.
Returns: boolean - صحيح في حالة كان الخط رمزيًا.
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
open(FontDefinition fontDefinition)
public static Font open(FontDefinition fontDefinition)
يفتح خطًا باستخدام كائن FontDefinition.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| fontDefinition | FontDefinition | كائن تعريف الخط. |
Returns: Font - Font loaded.
open(FontType fontType, byte[] fontData)
public static Font open(FontType fontType, byte[] fontData)
يفتح خطًا باستخدام نوع الخط ومصفوفة بايتات بيانات الخط.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| fontType | FontType | نوع الخط. |
| fontData | byte[] | مصفوفة بايت لتحميل الخط منها. |
Returns: Font - Font loaded.
open(FontType fontType, StreamSource fontStreamSource)
public static Font open(FontType fontType, StreamSource fontStreamSource)
يفتح خطًا باستخدام نوع الخط ومصدر الدفق.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| fontType | FontType | نوع الخط. |
| fontStreamSource | StreamSource | مصدر الدفق للخط. |
Returns: Font - Font loaded.
open(FontType fontType, String fileName)
public static Font open(FontType fontType, String fileName)
يفتح خطًا باستخدام نوع الخط واسم ملف الخط.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| fontType | FontType | نوع الخط. |
| fileName | java.lang.String | اسم ملف الخط. |
Returns: Font - Font loaded.
save(OutputStream stream)
public void save(OutputStream stream)
يحفظ الخط بالتنسيق الأصلي.
Note: following Font types are supported for saving: New TTF fonts; TTF Font subsets; CFF Font subsets; Type1 Font subsets.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| دفق | java.io.OutputStream | دفق لحفظ الخط. |
save(String fileName)
public void save(String fileName)
يحفظ الخط بالتنسيق الأصلي.
Note: following Font types are supported for saving: New TTF fonts; TTF Font subsets; CFF Font subsets; Type1 Font subsets.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| fileName | java.lang.String | ملف لحفظ الخط. |
saveToFormat(OutputStream stream, FontSavingFormats outFormat)
public void saveToFormat(OutputStream stream, FontSavingFormats outFormat)
يحفظ الخط بالتنسيق المحدد.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| دفق | java.io.OutputStream | دفق لحفظ الخط |
| outFormat | FontSavingFormats | الصيغة المطلوبة |
setFontFamily(String value)
public void setFontFamily(String value)
يضبط عائلة الخط.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| القيمة | java.lang.String | عائلة الخط الجديدة. |
setFontName(String value)
public void setFontName(String value)
يضبط اسم وجه الخط.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| القيمة | java.lang.String | اسم واجهة الخط الجديدة. |
setStyle(String value)
public void setStyle(String value)
يضبط نمط الخط. هذه قيمة نصية خام مقدمة من ملف الخط.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| القيمة | java.lang.String | نمط الخط الجديد. |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| arg0 | long | |
| arg1 | int |