TtfEncoding
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.font.IFontEncoding
public class TtfEncoding implements IFontEncoding
يمثل ترميز خط TTF.
الطرق
| طريقة | الوصف |
|---|---|
| decodeToGid(long unicode) | تنفيذ DecodeToGlyphId لخط TTF يبحث عن جدول Unicode ويعيد glyph id للرمز Unicode. |
| decodeToGidParameterized(IEncodingParameters parameters, long charCode) | الإصدار المعلم يسمح باستخدام جدول CMap محدد (ليس Unicode). |
| encode(long gid, long charCode) | يقوم بترميز الحرف. |
| equals(Object arg0) | |
| getClass() | |
| gidToUnicode(GlyphId glyphId) | يفك تشفير glyph id إلى Unicode. |
| hashCode() | |
| notify() | |
| notifyAll() | |
| toString() | |
| unicodeToGid(long unicode) | يفك تشفير Unicode ويعيد glyph id. |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
decodeToGid(long unicode)
public GlyphId decodeToGid(long unicode)
تنفيذ DecodeToGlyphId لخط TTF يبحث عن جدول Unicode ويعيد glyph id للرمز Unicode. glyph id هو رقم فريد لحرف، يعتمد على نوع الخط. على سبيل المثال: معرف Type1 هو اسم حرف، وهو نسخة من الفئة ( GlyphStringId ). معرف TTF هو فهرس int، وهو نسخة من الفئة ( GlyphUInt32Id ).
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| unicode | long | رمز الحرف للحصول على معرف الحرف. |
Returns: GlyphId - Glyph identifier related to character code passed.
decodeToGidParameterized(IEncodingParameters parameters, long charCode)
public GlyphId decodeToGidParameterized(IEncodingParameters parameters, long charCode)
الإصدار المعلم يسمح باستخدام جدول CMap محدد (ليس Unicode).
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| parameters | IEncodingParameters | تنفيذ واجهة IEncodingParameters. |
| charCode | long | رمز الحرف للحصول على معرف glyph. |
Returns: GlyphId - Glyph identifier related to character code passed.
encode(long gid, long charCode)
public void encode(long gid, long charCode)
يقوم بترميز glyph. بالنسبة لخطوط TTF يكون رمز الحرف هو Unicode.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| gid | long | معرف الرمز. |
| charCode | long | رمز الحرف. |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
gidToUnicode(GlyphId glyphId)
public long gidToUnicode(GlyphId glyphId)
يفك تشفير glyph id إلى Unicode. glyph id هو رقم فريد لحرف، يعتمد على نوع الخط. على سبيل المثال: معرف Type1 هو اسم glyph، وهو نسخة من الفئة ( GlyphStringId ). معرف TTF هو فهرس int، وهو نسخة من الفئة ( GlyphUInt32Id ).
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| glyphId | GlyphId | معرف الحرف للرمز المراد فك تشفيره. |
Returns: long - قيمة Unicode المتعلقة بمعرف الحرف الممرَّر.
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
Returns: java.lang.String
unicodeToGid(long unicode)
public GlyphId unicodeToGid(long unicode)
يفك تشفير Unicode ويعيد glyph id.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| unicode | long | Unicode للحصول على معرف الحرف. |
Returns: GlyphId - Glyph identifier related to unicode passed.
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 |