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:

معاملنوعالوصف
unicodelongرمز الحرف للحصول على معرف الحرف.

Returns: GlyphId - Glyph identifier related to character code passed.

decodeToGidParameterized(IEncodingParameters parameters, long charCode)

public GlyphId decodeToGidParameterized(IEncodingParameters parameters, long charCode)

الإصدار المعلم يسمح باستخدام جدول CMap محدد (ليس Unicode).

Parameters:

معاملنوعالوصف
parametersIEncodingParametersتنفيذ واجهة IEncodingParameters.
charCodelongرمز الحرف للحصول على معرف 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:

معاملنوعالوصف
gidlongمعرف الرمز.
charCodelongرمز الحرف.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

معاملنوعالوصف
arg0java.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:

معاملنوعالوصف
glyphIdGlyphIdمعرف الحرف للرمز المراد فك تشفيره.

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:

معاملنوعالوصف
unicodelongUnicode للحصول على معرف الحرف.

Returns: GlyphId - Glyph identifier related to unicode passed.

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

معاملنوعالوصف
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

معاملنوعالوصف
arg0long
arg1int