CffEncoding
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.font.IFontEncoding, com.aspose.font.ISupportsNameAddressing
public class CffEncoding implements IFontEncoding, ISupportsNameAddressing
يمثل ترميز CFF _font.
الطرق
| طريقة | الوصف |
|---|---|
| decodeToGid(long charCode) | يحصل على Gid لرمز الحرف الممرّر. |
| decodeToGidParameterized(IEncodingParameters parameters, long charCode) | طريقة فك تشفير معلمة. |
| encode(long gid, long charCode) | يقوم بترميز الحرف. |
| equals(Object arg0) | |
| getClass() | |
| getNameToCharCodeIndex() | يرجع خريطة الاسم إلى ترميز رمز الحرف. |
| getNameToGidIndex() | يرجع خريطة الاسم إلى ترميز رمز الحرف. |
| getNameToSidIndex() | يرجع خريطة الاسم إلى ترميز رمز الحرف. |
| getSidName(int sid) | يحصل على الاسم للـ SID المحدد. |
| gidToUnicode(GlyphId gid) | يفك تشفير Gid إلى Unicode. |
| hashCode() | |
| notify() | |
| notifyAll() | |
| toString() | |
| unicodeToGid(long unicode) | يفك تشفير Unicode ويعيد glyph id. |
| wait() | |
| wait(long arg0) | |
| wait(long arg0, int arg1) |
decodeToGid(long charCode)
public GlyphId decodeToGid(long charCode)
يحصل على Gid لرمز الحرف الممرّر. تم تصميم هذه الطريقة لخطوط CFF CIDFonts، حيث يجب أن يكون charCode قيمة CID صالحة. معرف الشكل (Glyph id) هو رقم فريد لشكل، وهو يعتمد على نوع _font. يمكن أن يكون معرف شكل خط CFF Font مثالًا من الفئة ( GlyphStringId ) أو الفئة ( GlyphUInt32Id ).
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| charCode | long | رمز الحرف (CID) للحصول على معرف الشكل. |
Returns: GlyphId - Glyph identifier related to CID passed.
decodeToGidParameterized(IEncodingParameters parameters, long charCode)
public GlyphId decodeToGidParameterized(IEncodingParameters parameters, long charCode)
طريقة فك ترميز معلمة. غير مدعومة لنوع خط CFF.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| parameters | IEncodingParameters | تنفيذ واجهة IEncodingParameters. |
| charCode | long | رمز الحرف للحصول على معرف الحرف. |
Returns: GlyphId - Glyph identifier related to charCode passed.
encode(long gid, long charCode)
public void encode(long gid, long charCode)
يقوم بترميز الشكل. غير مدعومة لأنواع خطوط CFF.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| gid | long | معرف الشكل |
| charCode | long | CharCode المرتبط بمعرف الشكل. |
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
getNameToCharCodeIndex()
public NameToCodeMap getNameToCharCodeIndex()
يعيد خريطة الاسم إلى ترميز رمز الحرف. ملاحظة: رمز الحرف ليس يونيكود. رمز الحرف هو فهرس حرف في "جدول" ترميز الخط.
Returns: NameToCodeMap - Name to character code encoding map.
getNameToGidIndex()
public NameToCodeMap getNameToGidIndex()
يعيد خريطة الاسم إلى ترميز رمز الحرف. ملاحظة: رمز الحرف ليس يونيكود. رمز الحرف هو فهرس حرف في "جدول" ترميز الخط.
Returns: NameToCodeMap - Name to character code encoding map.
getNameToSidIndex()
public NameToCodeMap getNameToSidIndex()
يعيد خريطة الاسم إلى ترميز رمز الحرف. ملاحظة: رمز الحرف ليس يونيكود. رمز الحرف هو فهرس حرف في "جدول" ترميز الخط.
Returns: NameToCodeMap - Name to character code encoding map.
getSidName(int sid)
public String getSidName(int sid)
يحصل على الاسم للـ SID المحدد.
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| sid | int | معرف السلسلة. |
Returns: java.lang.String - الاسم من فهرس السلسلة إذا وجد.
gidToUnicode(GlyphId gid)
public long gidToUnicode(GlyphId gid)
يفك ترميز Gid إلى يونيكود. معرف الشكل هو رقم فريد لشكل، وهو يعتمد على نوع _font. يمكن أن يكون معرف شكل خط CFF Font مثالًا من الفئة ( GlyphStringId ) أو الفئة ( GlyphUInt32Id ).
Parameters:
| معامل | نوع | الوصف |
|---|---|---|
| gid | 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)
يفك ترميز يونيكود ويعيد معرف الشكل. معرف الشكل هو رقم فريد لشكل، وهو يعتمد على نوع _font. يمكن أن يكون معرف شكل خط CFF Font مثالًا من الفئة ( GlyphStringId ) أو الفئة ( GlyphUInt32Id ).
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 |