| Constructor and Description |
|---|
EotFont() |
| Modifier and Type | Method and Description |
|---|---|
FontConverter |
createConverterForType(FontVerter.FontFormat fontFormat) |
boolean |
detectFormat(byte[] fontFile) |
byte[] |
getData() |
OpenTypeFont |
getEmbeddedFont() |
EotHeader |
getHeader() |
String |
getName() |
FontProperties |
getProperties() |
List<RuleValidator.FontValidatorError> |
getValidationErrors() |
boolean |
isValid() |
void |
normalize()
Fixes any validation issues with the font.
|
void |
read(byte[] fontFile) |
void |
setFont(OpenTypeFont font) |
public byte[] getData()
throws IOException
getData in interface FVFontIOException - error generating font datapublic void normalize()
throws IOException
FVFontnormalize in interface FVFontIOException - error reading font datapublic boolean detectFormat(byte[] fontFile)
detectFormat in interface FVFontfontFile - input font file datapublic void read(byte[] fontFile)
throws IOException
read in interface FVFontfontFile - reads/parses the input font data into this object.IOException - error reading font datapublic FontConverter createConverterForType(FontVerter.FontFormat fontFormat) throws FontNotSupportedException
createConverterForType in interface FVFontFontNotSupportedExceptionpublic boolean isValid()
public List<RuleValidator.FontValidatorError> getValidationErrors()
getValidationErrors in interface FVFontpublic FontProperties getProperties()
getProperties in interface FVFontpublic EotHeader getHeader()
public OpenTypeFont getEmbeddedFont()
public void setFont(OpenTypeFont font)
Copyright © 2018. All rights reserved.