Package com.mta.tehreer.sfnt.tables
Class OS2Table
java.lang.Object
com.mta.tehreer.sfnt.tables.OS2Table
Represents an OpenType `OS/2' table.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintstatic OS2TableConstructs anOS2Tableobject from the specified typeface.intintfsType()byte[]panose()shortshortshortshortshortshortsxHeight()longlonglonglonglonglongintintintintintintintintintintintintversion()shortshortshortshortshortshortshortshortshortshortshort
-
Constructor Details
-
OS2Table
Constructs anOS2Tableobject from the specified typeface.- Parameters:
typeface- The typeface from which theOS2Tableobject is constructed.- Throws:
NullPointerException- iftypefaceisnull.RuntimeException- iftypefacedoes not contain `OS/2' table.
-
-
Method Details
-
from
Constructs anOS2Tableobject from the specified typeface.- Parameters:
typeface- The typeface from which theOS2Tableobject is constructed.- Returns:
- A new
OS2Tableobject, ornullif `OS/2' table does not exist in the specified typeface. - Throws:
NullPointerException- iftypefaceisnull.
-
version
public int version() -
xAvgCharWidth
public short xAvgCharWidth() -
usWeightClass
public int usWeightClass() -
usWidthClass
public int usWidthClass() -
fsType
public int fsType() -
ySubscriptXSize
public short ySubscriptXSize() -
ySubscriptYSize
public short ySubscriptYSize() -
ySubscriptXOffset
public short ySubscriptXOffset() -
ySubscriptYOffset
public short ySubscriptYOffset() -
ySuperscriptXSize
public short ySuperscriptXSize() -
ySuperscriptYSize
public short ySuperscriptYSize() -
ySuperscriptXOffset
public short ySuperscriptXOffset() -
ySuperscriptYOffset
public short ySuperscriptYOffset() -
yStrikeoutSize
public short yStrikeoutSize() -
yStrikeoutPosition
public short yStrikeoutPosition() -
sFamilyClass
public short sFamilyClass() -
panose
public byte[] panose() -
ulUnicodeRange1
public long ulUnicodeRange1() -
ulUnicodeRange2
public long ulUnicodeRange2() -
ulUnicodeRange3
public long ulUnicodeRange3() -
ulUnicodeRange4
public long ulUnicodeRange4() -
achVendID
public int achVendID() -
fsSelection
public int fsSelection() -
usFirstCharIndex
public int usFirstCharIndex() -
usLastCharIndex
public int usLastCharIndex() -
sTypoAscender
public short sTypoAscender() -
sTypoDescender
public short sTypoDescender() -
sTypoLineGap
public short sTypoLineGap() -
usWinAscent
public int usWinAscent() -
usWinDescent
public int usWinDescent() -
ulCodePageRange1
public long ulCodePageRange1() -
ulCodePageRange2
public long ulCodePageRange2() -
sxHeight
public short sxHeight() -
sCapHeight
public short sCapHeight() -
usDefaultChar
public int usDefaultChar() -
usBreakChar
public int usBreakChar() -
usMaxContext
public int usMaxContext() -
usLowerOpticalPointSize
public int usLowerOpticalPointSize() -
usUpperOpticalPointSize
public int usUpperOpticalPointSize()
-