public class OpenTypeFont extends Object implements FVFont
| Constructor and Description |
|---|
OpenTypeFont() |
public static OpenTypeFont createBlankFont() throws IOException
IOExceptionpublic 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 boolean isValid()
public List<RuleValidator.FontValidatorError> getValidationErrors()
getValidationErrors in interface FVFontpublic void normalize()
throws IOException
FVFontnormalize in interface FVFontIOException - error reading font datapublic FontProperties getProperties()
getProperties in interface FVFontpublic FontConverter createConverterForType(FontVerter.FontFormat fontFormat) throws FontNotSupportedException
createConverterForType in interface FVFontFontNotSupportedExceptionpublic void addTable(OpenTypeTable table)
public byte[] getData()
throws IOException
getData in interface FVFontIOExceptionpublic void finalizeFont()
throws IOException
IOExceptionpublic void orderTablesByDependencies()
public File getSourceFile()
public void setSourceFile(File sourceFile)
public void removeTable(Class toRemoveType)
public boolean isCffType()
public boolean isTrueTypeOutlineType()
public float getOpenTypeVersion()
public HeadTable getHead()
public void setHead(HeadTable head)
public HorizontalHeadTable getHhea()
public void setHhea(HorizontalHeadTable hhea)
public HorizontalMetricsTable getHmtx()
public void setHmtx(HorizontalMetricsTable hmtx)
public OS2WinMetricsTable getOs2()
public void setOs2(OS2WinMetricsTable os2)
public PostScriptTable getPost()
public void setPost(PostScriptTable post)
public CmapTable getCmap()
public void setCmap(CmapTable cmap)
public MaximumProfileTable getMxap()
public void setMxap(MaximumProfileTable mxap)
public ControlValueTable getCvt()
public void setCvt(ControlValueTable cvt)
public NameTable getNameTable()
public void setName(NameTable name)
public CffTable getCffTable()
public GlyphLocationTable getLocaTable()
public GlyphTable getGlyfTable()
public List<OpenTypeTable> getTables()
public SfntHeader getSfntHeader()
Copyright © 2016. All rights reserved.