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(org.apache.fop.fonts.truetype.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 dataIOException
public CFFDataReader(org.apache.fop.fonts.truetype.FontFileReader fontFile) throws IOException
fontFile
- The font file as represented by a FontFileReader objectIOException
public Map<String,CFFDataReader.DICTEntry> getPrivateDict(CFFDataReader.DICTEntry privateEntry) throws IOException
IOException
public byte[] getPrivateDictBytes(CFFDataReader.DICTEntry privateEntry) throws IOException
IOException
public 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.DataInputByteArray 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 SIDIOException
public 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.DataInputByteArray getCFFData()
public CFFDataReader.CustomEncoding getEncoding()
public CFFDataReader.FDSelect getFDSelect()
public List<CFFDataReader.FontDict> getFDFonts()
public org.apache.fontbox.cff.DataInputByteArray getLocalSubrsForGlyph(int glyph) throws IOException
IOException
public CFFDataReader.CFFIndexData readCharStringIndex() throws IOException
IOException
- Throws an IO Exception if an error occursCopyright © 2024. All rights reserved.