Type1Font

Overview

Type1Font là một lớp trong Aspose.PDF FOSS cho Java. Dòng thừa kế từ: PdfFont.

Simple Type 1 font (/Subtype /Type1) – ISO 32000-1:2008, §9.6.

Khóa học này cung cấp 11 phương pháp để làm việc với các đối tượng Type1Font trong các chương trình Java. Các phương pháp có sẵn bao gồm: Type1Font, decode, fromDictionary, getBaseFont, getEncoding, getFontDescriptor, getFontDictionary, getFontMetrics, getToUnicode, getWidth, isComposite. Tất cả các thành viên công cộng đều có thể truy cập bất kỳ ứng dụng Java nào sau khi cài đặt Aspose.PDF FOSS cho gói Java. Tài sản : baseFont, composite, encoding, fontDescriptor, fontDictionary, fontMetrics,Và 1 thêm.

Properties

NameTypeAccessDescription
baseFontStringReadTrở lại tên chữ cái cơ bản (/BaseFont).
encodingFontEncodingReadTrở lại mã hóa font.
toUnicodeToUnicodeCMapReadTrở lại CMAP ToUnicode.
fontDescriptorFontDescriptorReadTrở lại phông chữ mô tả.
compositebooleanReadTrở về {@code true} khi đây là một phông chữ Type0 có mã hóa nội dung sử dụng các mã nhân vật đa bit (ví dụ:.
fontMetricsFontMetricsReadTrở lại font metrics.
fontDictionaryPdfDictionaryReadTrở lại từ điển chữ nền.

Methods

SignatureDescription
Type1Font(fontDict: PdfDictionary, parser: PDFParser)Tạo Type1Font từ một từ điển chữ.
decode(charCodes: byte[])String
getWidth(charCode: int)double
getBaseFont()StringTrở lại tên chữ cái cơ bản (/BaseFont).
getEncoding()FontEncodingTrở lại mã hóa font.
getToUnicode()ToUnicodeCMapTrở lại CMAP ToUnicode.
getFontDescriptor()FontDescriptorTrở lại phông chữ mô tả.
isComposite()booleanTrở về {@code true} khi đây là một phông chữ Type0 có mã hóa nội dung sử dụng các mã nhân vật đa bit (ví dụ:.
getFontMetrics()FontMetricsTrở lại font metrics.
getFontDictionary()PdfDictionaryTrở lại từ điển chữ nền.
fromDictionary(fontDict: PdfDictionary, parser: PDFParser)PdfFontTạo subclass PdfFont thích hợp từ một từ điển chữ.

See Also

 Tiếng Việt