CIDFONTE

Vue de l’ensemble

‘CIDFont’ est une classe dans Aspose.PDF FOSS pour Java.Déduit de: `PdfFon’.

La lettre CID (ISO 32000-1:2008, §9.7.4) est une des caractères de la norme.

Cette classe fournit 16 méthodes pour travailler avec des objets CIDFont dans les programmes Java. Les méthodologies disponibles comprennent: CID Font, cidToUnicode , decode‘, 'fromDictionary,, getBaseFon', getDefaultWidth., GetEncoding’, geetFonteDescriptor', 'getFontaDictory`` 'gettFonsMetrics ‘getToUnicode’ , ‘geatWithet 4 méthode supplémentaires. Tous les membres publics sont accessibles à toute application Java après l'installation de l’Aspose.PDF FOSS pour le package Java . Propriétés :basefont ́, ’composite defautWitenc, ‘code’, ‘fontd’ Descripture 3 et plus.

Propriétés

NameTypeAccessDescription
type2booleanReadReturns true if the descendant subtype is CIDFontType2 (TrueType-housed,
glyph ids resolvable via /CIDToGIDMap).
defaultWidthdoubleReadReturns the default width (/DW).
baseFontStringReadReturns the base font name (/BaseFont).
encodingFontEncodingReadReturns the font encoding.
toUnicodeToUnicodeCMapReadReturns the ToUnicode CMap.
fontDescriptorFontDescriptorReadReturns the font descriptor.
compositebooleanReadReturns {@code true} when this is a Type0 composite font whose
content-stream encoding uses multi-byte character codes (e.g.
fontMetricsFontMetricsReadReturns the font metrics.
fontDictionaryPdfDictionaryReadReturns the underlying font dictionary.

méthodes

SignatureDescription
CIDFont(fontDict: PdfDictionary, parser: PDFParser)Creates a CIDFont from a font dictionary.
cidToUnicode(cid: int)intRecovers the Unicode code point for a CID using the embedded font program,
for the common case of a CIDFontType2 (TrueType) descendant that ships
neither a {@code /ToUnicode} CMap on its parent Type0 font.
toGlyphId(cid: int)intMaps a CID to the embedded font program’s glyph id via /CIDToGIDMap
(explicit stream or the default Identity).
glyphOutline(gid: int)java.awt.geom.GeneralPathReturns the em-normalised, Y-up outline of the given glyph id from the
embedded TrueType program, or {@code null} when no embedded program is
available or the glyph cannot be parsed.
isType2()booleanReturns true if the descendant subtype is CIDFontType2 (TrueType-housed,
glyph ids resolvable via /CIDToGIDMap).
getWidth(cid: int)double
getDefaultWidth()doubleReturns the default width (/DW).
decode(charCodes: byte[])StringDecodes raw character code bytes to a Unicode string.
getBaseFont()StringReturns the base font name (/BaseFont).
getEncoding()FontEncodingReturns the font encoding.
getToUnicode()ToUnicodeCMapReturns the ToUnicode CMap.
getFontDescriptor()FontDescriptorReturns the font descriptor.
isComposite()booleanReturns {@code true} when this is a Type0 composite font whose
content-stream encoding uses multi-byte character codes (e.g.
getFontMetrics()FontMetricsReturns the font metrics.
getFontDictionary()PdfDictionaryReturns the underlying font dictionary.
fromDictionary(fontDict: PdfDictionary, parser: PDFParser)PdfFontCreates the appropriate PdfFont subclass from a font dictionary.

Voir aussi

  • Aspose.PDF pour Java — API d’entreprise
 Français