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
-
Method Summary
Modifier and TypeMethodDescriptionint
static OS2Table
Constructs anOS2Table
object from the specified typeface.int
int
fsType()
byte[]
panose()
short
short
short
short
short
short
sxHeight()
long
long
long
long
long
long
int
int
int
int
int
int
int
int
int
int
int
int
version()
short
short
short
short
short
short
short
short
short
short
short
-
Constructor Details
-
OS2Table
Constructs anOS2Table
object from the specified typeface.- Parameters:
typeface
- The typeface from which theOS2Table
object is constructed.- Throws:
NullPointerException
- iftypeface
isnull
.RuntimeException
- iftypeface
does not contain `OS/2' table.
-
-
Method Details
-
from
Constructs anOS2Table
object from the specified typeface.- Parameters:
typeface
- The typeface from which theOS2Table
object is constructed.- Returns:
- A new
OS2Table
object, ornull
if `OS/2' table does not exist in the specified typeface. - Throws:
NullPointerException
- iftypeface
isnull
.
-
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()
-