Type0Font
Overview
Type0Font เป็นคลาสใน Aspose.PDF FOSS สําหรับ Java. ทายาทจาก: PdfFont.
ชนิด 0 (สกัด) แฟนต์ (ISO 32000-1:2008, §9.7).
หมวดนี้ให้ 14 วิธีในการทํางานกับวัตถุ Type0Font ในโปรแกรม Java. วิธีการที่ใช้ได้แก่: Type0Font, decode, fromDictionary, getBaseFont, getDescendantFont, getEncoding, getEncodingName, getFontDescriptor, getFontDictionary, getFontMetrics, getToUnicode, getWidth,และวิธีการเพิ่มเติม 2 วิธี. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน Java ใดก็ได้หลังจากติดตั้งแพ็คเกจ FOSS for Java. คุณสมบัติ: baseFont, composite, descendantFont, encoding, encodingName, fontDescriptor,และอีก 4 คน.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
composite | boolean | Read | ได้รับการประกอบ. |
descendantFont | CIDFont | Read | การคืน CIDFont ที่เป็นลูกหลาน. |
fontDescriptor | FontDescriptor | Read | การคืน {@link FontDescriptor} ที่นําโดย CIDFont อนุพันธ์ (รูท Type0 ตัวเองไม่มี 1 PDF spec §9.7.3 ตั้งตัวอธิบายบนผู้ล่วงหน้า). |
encodingName | String | Read | การคืนชื่อการรหัส (เช่น “Identity-H”). |
identityEncoding | boolean | Read | กลับ true เมื่อการรหัส CMap เป็น Identity-H หรือ Identities-V, คือ. |
baseFont | String | Read | การคืนชื่อตัวอักษรฐาน (/BaseFont). |
encoding | FontEncoding | Read | ส่งกลับรหัสตัวอักษร. |
toUnicode | ToUnicodeCMap | Read | กลับการ ToUnicode CMap. |
fontMetrics | FontMetrics | Read | การคืนตัวเลขเมทริกส์ของอักษร. |
fontDictionary | PdfDictionary | Read | ส่งกลับวัสดุตัวอักษรที่อยู่เบื้องหลัง. |
Methods
| Signature | Description |
|---|---|
Type0Font(fontDict: PdfDictionary, parser: PDFParser) | สร้าง Type0Font จากวัสดุการเขียนตัวอักษร. |
decode(charCodes: byte[]) → String | การแยกรหัสไบต์ที่ไม่ถูกใช้ โดยการนํา CID มาปแบบ 2 ระดับ. |
getWidth(charCode: int) → double | |
isComposite() → boolean | กลับ true หากการตั้ง composite ได้. |
getDescendantFont() → CIDFont | การคืน CIDFont ที่เป็นลูกหลาน. |
getFontDescriptor() → FontDescriptor | การคืน {@link FontDescriptor} ที่นําโดย CIDFont อนุพันธ์ (รูท Type0 ตัวเองไม่มี 1 PDF spec §9.7.3 ตั้งตัวอธิบายบนผู้ล่วงหน้า). |
getEncodingName() → String | การคืนชื่อการรหัส (เช่น “Identity-H”). |
isIdentityEncoding() → boolean | กลับ true เมื่อการรหัส CMap เป็น Identity-H หรือ Identities-V, คือ. |
getBaseFont() → String | การคืนชื่อตัวอักษรฐาน (/BaseFont). |
getEncoding() → FontEncoding | ส่งกลับรหัสตัวอักษร. |
getToUnicode() → ToUnicodeCMap | กลับการ ToUnicode CMap. |
getFontMetrics() → FontMetrics | การคืนตัวเลขเมทริกส์ของอักษร. |
getFontDictionary() → PdfDictionary | ส่งกลับวัสดุตัวอักษรที่อยู่เบื้องหลัง. |
fromDictionary(fontDict: PdfDictionary, parser: PDFParser) → PdfFont | สร้างตัวกลักษณะ PdfFont ที่เหมาะสมจากวัตถุดิศานุกรมตัวอักษร. |