public class PDFontDescriptor extends PDObject
| Constructor and Description |
|---|
PDFontDescriptor(COSObject obj)
Constructor from font descriptor COSObject.
|
clear, empty, getBooleanKey, getIntegerKey, getKey, getNameKey, getObject, getRealKey, getStringKey, knownKey, removeKey, setBooleanKey, setIntegerKey, setKey, setNameKey, setObject, setObject, setStringKey, updateFromObject, updateToObjectpublic PDFontDescriptor(COSObject obj)
obj - is descriptor COSObject.public Long getFlags()
public ASAtom getFontName()
public String getFontFamily()
public ASAtom getFontStretch()
public Double getFontWeight()
public boolean isFixedPitch()
public boolean isSerif()
public boolean isSymbolic()
public boolean isScript()
public boolean isNonsymbolic()
public boolean isItalic()
public boolean isAllCap()
public boolean isSmallCap()
public boolean isForceBold()
public double[] getFontBoundingBox()
public Double getItalicAngle()
public Double getAscent()
public Double getDescent()
public Double getLeading()
public Double getCapHeight()
public Double getXHeight()
public Double getStemV()
public Double getStemH()
public Double getAvgWidth()
public Double getMaxWidth()
public Double getMissingWidth()
public String getCharSet()
public COSStream getFontFile()
public COSStream getFontFile2()
public COSStream getFontFile3()
public boolean canParseFontFile(ASAtom key)
key - is key of font program in font descriptor dictionary, e.g.
FontFile or FontFile2.public void setFontName(ASAtom fontName)
public void setFontFamily(String fontFamily)
public void setFontStretch(ASAtom fontStretch)
public void setFontWeight(Double fontWeight)
public void setFixedPitch(Boolean fixedPitch)
public void setSerif(Boolean serif)
public void setSymbolic(Boolean symbolic)
public void setScript(Boolean script)
public void setNonSymblic(Boolean nonSymblic)
public void setItalic(Boolean italic)
public void setAllCap(Boolean allCap)
public void setSmallCup(Boolean smallCup)
public void setForceBold(Boolean forceBold)
public void setFontBoundingBox(double[] fontBoundingBox)
public void setItalicAngle(Double italicAngle)
public void setAscent(Double ascent)
public void setDescent(Double descent)
public void setLeading(Double leading)
public void setCapHeight(Double capHeight)
public void setxHeight(Double xHeight)
public void setStemV(Double stemV)
public void setStemH(Double stemH)
public void setAvgWidth(Double avgWidth)
public void setMaxWidth(Double maxWidth)
public void setMissingWidth(Double missingWidth)
public void setCharSet(String charSet)
public static PDFontDescriptor getDescriptorFromMetrics(StandardFontMetrics sfm)
sfm - is standard font metrics.Copyright © 2015–2018 The veraPDF Consortium. All rights reserved.