CFFParser

Overview

CFFParser is a class in Aspose.PDF FOSS for Java.

Minimal parser for the Compact Font Format (CFF) — Adobe Technical Note #5176.

This class provides 1 method for working with CFFParser objects in Java programs. Available methods include: CFFParser. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: cffBytes, fontName, glyphNames, numGlyphs.

Properties

NameTypeAccessDescription
cffBytesbyte[]ReadOriginal CFF bytes (verbatim — handy for the OTF wrapper).
fontNameStringReadPostScript font name from the Name INDEX (first entry).
numGlyphsintReadNumber of glyphs (size of CharStrings INDEX).
glyphNamesString[]ReadGlyph-id → glyph-name table (length == numGlyphs; index 0 is always “.notdef”).

Methods

SignatureDescription
CFFParser(data: byte[])Parses a CFF stream.

See Also

 English