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 آخرين.

خصائص

اسمالنوعالوصولوصف
trueTypeReaderTrueTypeReaderاقرأيعيد TrueTypeReader إذا كان البرنامج المكتوب قد تم تحميله.
baseFontStringاقرأيعيد اسم الخط الأساسي (/BaseFont).
encodingFontEncodingاقرأيعيد ترميز الخطوط.
toUnicodeToUnicodeCMapاقرأيعيد خريطة ToUnicode CMap.
fontDescriptorFontDescriptorاقرأيعيد وصف الخط.
compositebooleanاقرأيعيد {@code true} عندما يكون هذا نوع 0 من الخطوط المركبة التي
تشفير تيار المحتوى يستخدم رموز أحرف متعددة البايت (مثل:.
fontMetricsFontMetricsاقرأيعيد مقاييس الخطوط.
fontDictionaryPdfDictionaryاقرأيعيد قاموس الخط الأساسي.

الطرق

التوقيعوصف
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:
  1. 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. |

    انظر أيضاً

 العربية