Type1Encoding

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.font.IFontEncoding, com.aspose.font.ISupportsNameAddressing

public class Type1Encoding implements IFontEncoding, ISupportsNameAddressing

يمثل ترميز خط Type1.

الطرق

طريقةالوصف
decodeToGid(long charCode)يفك تشفير Gid إلى Unicode.
decodeToGidParameterized(IEncodingParameters parameters, long charCode)طريقة فك تشفير معلمة.
encode(long gid, long charCode)يقوم بترميز الحرف.
equals(Object arg0)
getClass()
getNameToCharCodeIndex()يرجع خريطة الاسم إلى ترميز رمز الحرف.
gidToUnicode(GlyphId gid)يفك تشفير Gid إلى Unicode.
hashCode()
notify()
notifyAll()
toString()
unicodeToGid(long unicode)يرجع GlyphId للـ Unicode.
wait()
wait(long arg0)
wait(long arg0, int arg1)

decodeToGid(long charCode)

public GlyphId decodeToGid(long charCode)

يفك تشفير Gid إلى Unicode. معرف الحرف (Glyph id) هو رقم فريد لحرف، يعتمد على نوع الخط. على سبيل المثال: معرف Type1 هو اسم الحرف، وهو مثال على الفئة (GlyphStringId). معرف TTF هو فهرس عدد صحيح، وهو مثال على الفئة (GlyphUInt32Id).

Parameters:

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

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

decodeToGidParameterized(IEncodingParameters parameters, long charCode)

public GlyphId decodeToGidParameterized(IEncodingParameters parameters, long charCode)

طريقة فك تشفير معلمة. غير مدعومة لنوع الخط Type1.

Parameters:

معاملنوعالوصف
parametersIEncodingParametersغير مدعومة لنوع الخط Type1.
charCodelongغير مدعومة لنوع الخط Type1.

Returns: GlyphId - Not supported for Type1 Font type.

encode(long gid, long charCode)

public void encode(long gid, long charCode)

يقوم بترميز الحرف. بالنسبة لخطوط TTF يكون رمز الحرف هو Unicode. غير مدعومة لأنواع الخط Type1.

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

getNameToCharCodeIndex()

public NameToCodeMap getNameToCharCodeIndex()

يرجع خريطة الاسم إلى ترميز رمز الحرف. ملاحظة: رمز الحرف ليس Unicode. رمز الحرف هو فهرس حرف في “جدول” ترميز الخط.

Returns: NameToCodeMap - Name to character code encoding map.

gidToUnicode(GlyphId gid)

public long gidToUnicode(GlyphId gid)

يفك تشفير Gid إلى Unicode. معرف الحرف (Glyph id) هو رقم فريد لحرف، يعتمد على نوع الخط. على سبيل المثال: معرف Type1 هو اسم الحرف، وهو مثال على الفئة (GlyphStringId). معرف TTF هو فهرس عدد صحيح، وهو مثال على الفئة (GlyphUInt32Id).

Parameters:

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

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)

يرجع GlyphId للـ Unicode. أو notdef إذا كان الخط لا يحتوي على حرف للـ Unicode. معرف الحرف (Glyph id) هو رقم فريد لحرف، يعتمد على نوع الخط. على سبيل المثال: معرف Type1 هو اسم الحرف، وهو مثال على الفئة (GlyphStringId). معرف TTF هو فهرس عدد صحيح، وهو مثال على الفئة (GlyphUInt32Id).

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