Package com.tom_roush.fontbox.cff
Class CFFParser
- java.lang.Object
-
- com.tom_roush.fontbox.cff.CFFParser
-
public class CFFParser extends Object
This class represents a parser for a CFF font.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCFFParser.ByteSourceSource from which bytes may be read in the future.
-
Constructor Summary
Constructors Constructor Description CFFParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<CFFFont>parse(byte[] bytes)Parse CFF font using a byte array as input.List<CFFFont>parse(byte[] bytes, CFFParser.ByteSource source)Parse CFF font using byte array, also passing in a byte source for future use.StringtoString()
-
-
-
Method Detail
-
parse
public List<CFFFont> parse(byte[] bytes, CFFParser.ByteSource source) throws IOException
Parse CFF font using byte array, also passing in a byte source for future use.- Parameters:
bytes- source bytessource- source to re-read bytes from in the future- Returns:
- the parsed CFF fonts
- Throws:
IOException- If there is an error reading from the stream
-
parse
public List<CFFFont> parse(byte[] bytes) throws IOException
Parse CFF font using a byte array as input.- Parameters:
bytes- the given byte array- Returns:
- the parsed CFF fonts
- Throws:
IOException- If there is an error reading from the stream
-
-