TrueTypeFont
المعلومات العامة
TrueTypeFont هي فئة في Aspose.PDF FOSS لـ Java. الميراث من: PdfFont.
TrueType النمط (/النوع الفرعي /TrueType) - ISO 32000-1:2008، 9.6.3.
توفر هذه الفئة 15 طريقة للعمل مع TrueTypeFont كائنات في برامج Java. المنهجيات المتاحة تشمل: TrueTypeFont, decode, fromDictionary, getBaseFont, getEncoding, getFontDescriptor, getFontDictionary, getFontMetrics, getToUnicode, getTrueTypeReader, getWidth, glyphOutlineForCode,، و 3 طرق إضافية. جميع الأعضاء العامين يمكن الوصول إليهم من أي تطبيق Java بعد تثبيت حزمة Aspose.PDF FOSS for Java. خصائص: baseFont, composite, encoding, fontDescriptor, fontDictionary, fontMetrics,و 2 آخرين.
خصائص
| اسم | النوع | الوصول | وصف |
|---|---|---|---|
trueTypeReader | TrueTypeReader | اقرأ | يعيد TrueTypeReader إذا كان البرنامج المكتوب قد تم تحميله. |
baseFont | String | اقرأ | يعيد اسم الخط الأساسي (/BaseFont). |
encoding | FontEncoding | اقرأ | يعيد ترميز الخطوط. |
toUnicode | ToUnicodeCMap | اقرأ | يعيد خريطة ToUnicode CMap. |
fontDescriptor | FontDescriptor | اقرأ | يعيد وصف الخط. |
composite | boolean | اقرأ | يعيد {@code true} عندما يكون هذا نوع 0 من الخطوط المركبة التي |
| تشفير تيار المحتوى يستخدم رموز أحرف متعددة البايت (مثل:. | |||
fontMetrics | FontMetrics | اقرأ | يعيد مقاييس الخطوط. |
fontDictionary | PdfDictionary | اقرأ | يعيد قاموس الخط الأساسي. |
الطرق
| التوقيع | وصف |
|---|---|
TrueTypeFont(fontDict: PdfDictionary, parser: PDFParser) | يخلق TrueTypeFont من قاموس الخطوط. |
decode(charCodes: byte[]) → String | |
getWidth(charCode: int) → double | |
getTrueTypeReader() → TrueTypeReader | يعيد TrueTypeReader إذا كان البرنامج المكتوب قد تم تحميله. |
resolveGlyphId(code: int) → int | ترسم خرائط رمز شخصية إلى هوية glyph في البرنامج المضمن، بعد |
| TrueType قواعد اختيار النقاط في ISO 32000-1:2008 §9.6.6.4: |
- symbolic font with no explicit /Encoding → embedde |
| `glyphOutlineForCode(code: int)` → `java.awt.geom.GeneralPath` | Returns the em-normalised, Y-up outline of the glyph selected by
{@link #resolveGlyphId(int)} for the given character code, or {@code null}
when no embedded program is present or the glyph cannot be resolved. |
| `hasExplicitEncoding()` → `boolean` | Returns true if the font dictionary carries an explicit /Encoding
(a base-encoding name or an encoding dictionary). |
| `getBaseFont()` → `String` | Returns the base font name (/BaseFont). |
| `getEncoding()` → `FontEncoding` | Returns the font encoding. |
| `getToUnicode()` → `ToUnicodeCMap` | Returns the ToUnicode CMap. |
| `getFontDescriptor()` → `FontDescriptor` | Returns the font descriptor. |
| `isComposite()` → `boolean` | Returns {@code true} when this is a Type0 composite font whose
content-stream encoding uses multi-byte character codes (e.g. |
| `getFontMetrics()` → `FontMetrics` | Returns the font metrics. |
| `getFontDictionary()` → `PdfDictionary` | Returns the underlying font dictionary. |
| `fromDictionary(fontDict: PdfDictionary, parser: PDFParser)` → `PdfFont` | Creates the appropriate PdfFont subclass from a font dictionary. |
انظر أيضاً