TrueTypeReader

Vue de l’ensemble

‘TrueTypeReader’ est une classe dans Aspose.PDF FOSS pour Java.

Il rédige les fichiers de texte TrueType/OpenTYpe (en format SFNT).

Cette classe fournit 12 méthodes pour travailler avec des objets TrueTypeReader dans les programmes Java. Les méthodologies disponibles comprennent: ‘TrueTYpe Reader’, ‘getAdvanceWidth’, getCmapEntries', ‘getFontName’, ' getGlyphId', ’getGryphNamen', ‚getNumGliphs, ’netUnicodeForGlithIde’, ‘‘getUniceForLithInPremierUniciode’,‘‘getUnitsPerEm’,‘hasnicodCmap’. 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 : cmcimètre Ents, n°Nome, N°Glephnume, PerunitsEm.

Propriétés

NameTypeAccessDescription
unitsPerEmintReadReturns the font’s unitsPerEm value from the head table.
numGlyphsintReadReturns the number of glyphs in the font.
fontNameStringReadReturns the font name from the name table (if available).
cmapEntriesjava.util.Map<Integer, Integer>ReadReturns an unmodifiable view of the Unicode-to-glyph cmap as a map.

méthodes

SignatureDescription
TrueTypeReader(data: byte[])Creates a TrueTypeReader from raw font data.
getUnitsPerEm()intReturns the font’s unitsPerEm value from the head table.
getNumGlyphs()intReturns the number of glyphs in the font.
getGlyphId(charCode: int)intMaps a character code to a glyph ID using the cmap table.
getUnicodeForGlyphId(glyphId: int)intReturns the first Unicode code point mapped to the given glyph ID.
getUnicodeForGlyphIdPreferUnicode(glyphId: int)intReturns the Unicode code point for the given glyph ID using ONLY the
true-Unicode cmap subtables (see {@link #unicodeReverseCmap}).
hasUnicodeCmap()booleanReturns true if the font ships at least one true-Unicode cmap subtable
(platform 3 encoding 1/10, or platform 0).
getGlyphName(glyphId: int)StringReturns the PostScript name for the glyph from the {@code /post} table,
or {@code null} if the post table was missing, used a format we don’t
parse, or the glyph id is out of range.
getAdvanceWidth(glyphId: int)intReturns the advance width for the given glyph ID, in font units.
getFontName()StringReturns the font name from the name table (if available).
getCmapEntries()java.util.Map<Integer, Integer>Returns an unmodifiable view of the Unicode-to-glyph cmap as a map.
getGlyphPath(gid: int)java.awt.geom.GeneralPathReturns the outline of a glyph as a {@link java.awt.geom.GeneralPath} in
em-normalised coordinates (font units divided by {@code unitsPerEm}), with
the TrueType Y-up orientation preserved.

Voir aussi

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