public class CFFDataReader extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
CFFDataReader.CFFIndexData
An object used to hold index data from the CFF data
|
class |
CFFDataReader.CFFSubTable
Parent class which provides the ability to retrieve byte data from
a sub-table.
|
class |
CFFDataReader.CustomEncoding |
static class |
CFFDataReader.DICTEntry
A class containing data for a dictionary entry
|
class |
CFFDataReader.FDSelect |
class |
CFFDataReader.FontDict |
class |
CFFDataReader.Format0Encoding |
class |
CFFDataReader.Format0FDSelect |
class |
CFFDataReader.Format1Encoding |
class |
CFFDataReader.Format3FDSelect |
| Constructor and Description |
|---|
CFFDataReader() |
CFFDataReader(byte[] cffDataArray)
Constructor for the CFF data reader which accepts the CFF byte data
as an argument.
|
CFFDataReader(FontFileReader fontFile)
Constructor for the CFF data reader which accepts a FontFileReader object
which points to the original font file as an argument.
|
public CFFDataReader()
public CFFDataReader(byte[] cffDataArray)
throws IOException
cffDataArray - A byte array which holds the CFF dataIOExceptionpublic CFFDataReader(FontFileReader fontFile) throws IOException
fontFile - The font file as represented by a FontFileReader objectIOExceptionpublic Map<String,CFFDataReader.DICTEntry> getPrivateDict(CFFDataReader.DICTEntry privateEntry) throws IOException
IOExceptionpublic byte[] getPrivateDictBytes(CFFDataReader.DICTEntry privateEntry) throws IOException
IOExceptionpublic LinkedHashMap<String,CFFDataReader.DICTEntry> parseDictData(byte[] dictData) throws IOException
dictData - The data for the dictionary dataIOException - Throws an IO Exception if an error occurspublic CFFDataReader.CFFIndexData readIndex(int offset) throws IOException
offset - The position of the index object to readIOException - Throws an IO Exception if an error occurspublic CFFDataReader.CFFIndexData readIndex(org.apache.fontbox.cff.CFFDataInput input) throws IOException
input - The object holding the CFF byte dataIOException - Throws an IO Exception if an error occurspublic int getSIDFromGID(int charsetOffset,
int gid)
throws IOException
charsetOffset - The offset of the charset datagid - The GID for which to retrieve the SIDIOExceptionpublic byte[] getHeader()
public CFFDataReader.CFFIndexData getNameIndex()
public CFFDataReader.CFFIndexData getTopDictIndex()
public LinkedHashMap<String,CFFDataReader.DICTEntry> getTopDictEntries()
public CFFDataReader.CFFIndexData getStringIndex()
public CFFDataReader.CFFIndexData getGlobalIndexSubr()
public CFFDataReader.CFFIndexData getLocalIndexSubr()
public CFFDataReader.CFFIndexData getCharStringIndex()
public org.apache.fontbox.cff.CFFDataInput getCFFData()
public CFFDataReader.CustomEncoding getEncoding()
public CFFDataReader.FDSelect getFDSelect()
public List<CFFDataReader.FontDict> getFDFonts()
public org.apache.fontbox.cff.CFFDataInput getLocalSubrsForGlyph(int glyph)
throws IOException
IOExceptionpublic CFFDataReader.CFFIndexData readCharStringIndex() throws IOException
IOException - Throws an IO Exception if an error occursCopyright © 2023 Apache Software Foundation. All rights reserved.