TtfOs2Table

Inheritance: java.lang.Object, com.aspose.font.TtfTableBase

public class TtfOs2Table extends TtfTableBase

Represents “OS/2” table of the TTF Font file.

Methods

MethodDescription
getTag()Gets table tag.
getVersion()Gets Version value.
getSupportedTableVersions()Gets supported versions of the OS/2 table.
getXAvgCharWidth()Gets the Average Character Width parameter.
getUSWeightClass()Indicates the visual weight (degree of blackness or thickness of strokes) of the characters in the Font.
getUSWidthClass()Indicates a relative change from the normal aspect ratio (width to height ratio) as specified by a font designer for the glyphs in a Font.
getFSType()Gets FSType value.
getYSubscriptXSize()Gets YSubscriptXSize value.
getYSubscriptYSize()Gets YSubscriptYSize value.
getYSubscriptXOffset()Gets YSubscriptXOffset value.
getYSubscriptYOffset()Gets YSubscriptYOffset value.
getYSuperscriptXSize()Gets YSuperscriptXSize value.
getYSuperscriptYSize()Gets YSuperscriptYSize value.
getYSuperscriptXOffset()Gets YSuperscriptXOffset value.
getYSuperscriptYOffset()Gets YSuperscriptYOffset value.
getYStrikeoutSize()Gets YStrikeoutSize value.
getYStrikeoutPosition()Gets YStrikeoutPosition value.
getSFamilyClass()This parameter is a classification of font-family design.
getPanose()This 10 byte series of numbers is used to describe the visual characteristics of a given typeface.
getULUnicodeRange()Gets ULUnicodeRange value.
getAchVendId()Gets AchVendId value.
getFSSelection()Contains information concerning the nature of the font patterns.
getUSFirstCharIndex()Gets USFirstCharIndex value.
getUSLastCharIndex()Gets USLastCharIndex value.
getSTypoAscender()Gets STypoAscender value.
getSTypoDescender()Gets STypoDescender value.
getSTypoLineGap()Gets STypoLineGap value.
getUSWinAscent()Gets USWinAscent value.
getUSWinDescent()Gets USWinDescent value.
getULCodePageRange()Gets ULCodePageRange value.
getSXHeight()Gets SXHeight value.
getSCapHeight()Gets SCapHeight value.
getUSDefaultChar()Gets USDefaultChar value.
getUSBreakChar()Gets USBreakChar value.
getUSMaxContext()Gets USMaxContext value.
getUSLowerOpticalPointSize()Gets USLowerOpticalPointSize value.
getUSUpperOpticalPointSize()Gets USUpperOpticalPointSize value.
getLicenseFlags()Gets an embedded flags(fsType) in object representation.

getTag()

public static String getTag()

Gets table tag.

Returns: java.lang.String - Table tag.

getVersion()

public int getVersion()

Gets Version value.

Returns: int - Version value.

getSupportedTableVersions()

public int[] getSupportedTableVersions()

Gets supported versions of the OS/2 table.

Returns: int[] - Supported versions of the OS/2 table.

getXAvgCharWidth()

public short getXAvgCharWidth()

Gets the Average Character Width parameter.

Returns: short - The Average Character Width parameter.

getUSWeightClass()

public int getUSWeightClass()

Indicates the visual weight (degree of blackness or thickness of strokes) of the characters in the Font.

Returns: int - The visual weight (degree of blackness or thickness of strokes) of the characters in the Font.

getUSWidthClass()

public int getUSWidthClass()

Indicates a relative change from the normal aspect ratio (width to height ratio) as specified by a font designer for the glyphs in a Font.

Returns: int - A relative change from the normal aspect ratio (width to height ratio) as specified by a font designer for the glyphs in a Font.

getFSType()

public int getFSType()

Gets FSType value.


Indicates font embedding licensing rights for the Font.

Returns: int - FSType value.

getYSubscriptXSize()

public short getYSubscriptXSize()

Gets YSubscriptXSize value.

Returns: short - YSubscriptXSize value.

getYSubscriptYSize()

public short getYSubscriptYSize()

Gets YSubscriptYSize value.

Returns: short - YSubscriptYSize value.

getYSubscriptXOffset()

public short getYSubscriptXOffset()

Gets YSubscriptXOffset value.

Returns: short - YSubscriptXOffset value.

getYSubscriptYOffset()

public short getYSubscriptYOffset()

Gets YSubscriptYOffset value.

Returns: short - YSubscriptYOffset value.

getYSuperscriptXSize()

public short getYSuperscriptXSize()

Gets YSuperscriptXSize value.

Returns: short - YSuperscriptXSize value.

getYSuperscriptYSize()

public short getYSuperscriptYSize()

Gets YSuperscriptYSize value.

Returns: short - YSuperscriptYSize value.

getYSuperscriptXOffset()

public short getYSuperscriptXOffset()

Gets YSuperscriptXOffset value.

Returns: short - YSuperscriptXOffset value.

getYSuperscriptYOffset()

public short getYSuperscriptYOffset()

Gets YSuperscriptYOffset value.

Returns: short - YSuperscriptYOffset value.

getYStrikeoutSize()

public short getYStrikeoutSize()

Gets YStrikeoutSize value.

Returns: short - YStrikeoutSize value.

getYStrikeoutPosition()

public short getYStrikeoutPosition()

Gets YStrikeoutPosition value.

Returns: short - YStrikeoutPosition value.

getSFamilyClass()

public short getSFamilyClass()

This parameter is a classification of font-family design. The font class and font subclass are registered values assigned by IBM to each font family. This parameter is intended for use in selecting an alternate font when the requested font is not available.

Returns: short - Classification of font-family design.

getPanose()

public byte[] getPanose()

This 10 byte series of numbers is used to describe the visual characteristics of a given typeface. These characteristics are then used to associate the font with other fonts of similar appearance having different names.

Returns: byte[] - The visual characteristics of a given typeface.

getULUnicodeRange()

public long[] getULUnicodeRange()

Gets ULUnicodeRange value.

Returns: long[] - ULUnicodeRange value.

getAchVendId()

public byte[] getAchVendId()

Gets AchVendId value.

Returns: byte[] - AchVendId value.

getFSSelection()

public int getFSSelection()

Contains information concerning the nature of the font patterns.

0	bit 1	ITALIC	Font contains Italic characters, otherwise they are upright.
 1	 	    UNDERSCORE	Characters are underscored.
 2	 	    NEGATIVE	Characters have their foreground and background reversed.
 3	 	    OUTLINED	Outline (hollow) characters, otherwise they are solid.
 4	 	    STRIKEOUT	Characters are overstruck.
 5	bit 0	BOLD	Characters are emboldened.
 6	 	    REGULAR	Characters are in the standard weight/style for the font.

Returns: int - The information.

getUSFirstCharIndex()

public int getUSFirstCharIndex()

Gets USFirstCharIndex value.

Returns: int - USFirstCharIndex value.

getUSLastCharIndex()

public int getUSLastCharIndex()

Gets USLastCharIndex value.

Returns: int - USLastCharIndex value.

getSTypoAscender()

public short getSTypoAscender()

Gets STypoAscender value.

Returns: short - STypoAscender value.

getSTypoDescender()

public short getSTypoDescender()

Gets STypoDescender value.

Returns: short - STypoDescender value.

getSTypoLineGap()

public short getSTypoLineGap()

Gets STypoLineGap value.

Returns: short - STypoLineGap value.

getUSWinAscent()

public int getUSWinAscent()

Gets USWinAscent value.

Returns: int - USWinAscent value.

getUSWinDescent()

public int getUSWinDescent()

Gets USWinDescent value.

Returns: int - USWinDescent value.

getULCodePageRange()

public long[] getULCodePageRange()

Gets ULCodePageRange value.

Returns: long[] - ULCodePageRange value.

getSXHeight()

public short getSXHeight()

Gets SXHeight value.

Returns: short - SXHeight value.

getSCapHeight()

public short getSCapHeight()

Gets SCapHeight value.

Returns: short - SCapHeight value.

getUSDefaultChar()

public int getUSDefaultChar()

Gets USDefaultChar value.

Returns: int - USDefaultChar value.

getUSBreakChar()

public int getUSBreakChar()

Gets USBreakChar value.

Returns: int - USBreakChar value.

getUSMaxContext()

public int getUSMaxContext()

Gets USMaxContext value.

Returns: int - UsMaxContext value.

getUSLowerOpticalPointSize()

public int getUSLowerOpticalPointSize()

Gets USLowerOpticalPointSize value.

Returns: int - The USLowerOpticalPointSize value.

getUSUpperOpticalPointSize()

public int getUSUpperOpticalPointSize()

Gets USUpperOpticalPointSize value.

Returns: int - The USUpperOpticalPointSize value.

getLicenseFlags()

public LicenseFlags getLicenseFlags()

Gets an embedded flags(fsType) in object representation.

Returns: LicenseFlags - Embedded flags.