com.aspose.font

Interfaces

Classes

Enums

Exceptions

com.aspose.font

Class TtfOs2Table



  • public class TtfOs2Table
    extends TtfTableBase

    Represents "OS/2" table of the TTF Font file.

    • Method Detail

      • getTag

        public static String getTag()

        Gets table tag.

        Returns:
        Table tag.
      • getVersion

        public int getVersion()

        Gets Version value.

        Returns:
        Version value.
      • getSupportedTableVersions

        public int[] getSupportedTableVersions()

        Gets supported versions of the OS/2 table.

        Returns:
        Supported versions of the OS/2 table.
      • getXAvgCharWidth

        public short getXAvgCharWidth()

        Gets the Average Character Width parameter.

        Returns:
        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:
        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:
        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:
        FSType value.
      • getYSubscriptXSize

        public short getYSubscriptXSize()

        Gets YSubscriptXSize value.

        Returns:
        YSubscriptXSize value.
      • getYSubscriptYSize

        public short getYSubscriptYSize()

        Gets YSubscriptYSize value.

        Returns:
        YSubscriptYSize value.
      • getYSubscriptXOffset

        public short getYSubscriptXOffset()

        Gets YSubscriptXOffset value.

        Returns:
        YSubscriptXOffset value.
      • getYSubscriptYOffset

        public short getYSubscriptYOffset()

        Gets YSubscriptYOffset value.

        Returns:
        YSubscriptYOffset value.
      • getYSuperscriptXSize

        public short getYSuperscriptXSize()

        Gets YSuperscriptXSize value.

        Returns:
        YSuperscriptXSize value.
      • getYSuperscriptYSize

        public short getYSuperscriptYSize()

        Gets YSuperscriptYSize value.

        Returns:
        YSuperscriptYSize value.
      • getYSuperscriptXOffset

        public short getYSuperscriptXOffset()

        Gets YSuperscriptXOffset value.

        Returns:
        YSuperscriptXOffset value.
      • getYSuperscriptYOffset

        public short getYSuperscriptYOffset()

        Gets YSuperscriptYOffset value.

        Returns:
        YSuperscriptYOffset value.
      • getYStrikeoutSize

        public short getYStrikeoutSize()

        Gets YStrikeoutSize value.

        Returns:
        YStrikeoutSize value.
      • getYStrikeoutPosition

        public short getYStrikeoutPosition()

        Gets YStrikeoutPosition value.

        Returns:
        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:
        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:
        The visual characteristics of a given typeface.
      • getULUnicodeRange

        public long[] getULUnicodeRange()

        Gets ULUnicodeRange value.

        Returns:
        ULUnicodeRange value.
      • getAchVendId

        public byte[] getAchVendId()

        Gets AchVendId value.

        Returns:
        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:
        The information.
      • getUSFirstCharIndex

        public int getUSFirstCharIndex()

        Gets USFirstCharIndex value.

        Returns:
        USFirstCharIndex value.
      • getUSLastCharIndex

        public int getUSLastCharIndex()

        Gets USLastCharIndex value.

        Returns:
        USLastCharIndex value.
      • getSTypoAscender

        public short getSTypoAscender()

        Gets STypoAscender value.

        Returns:
        STypoAscender value.
      • getSTypoDescender

        public short getSTypoDescender()

        Gets STypoDescender value.

        Returns:
        STypoDescender value.
      • getSTypoLineGap

        public short getSTypoLineGap()

        Gets STypoLineGap value.

        Returns:
        STypoLineGap value.
      • getUSWinAscent

        public int getUSWinAscent()

        Gets USWinAscent value.

        Returns:
        USWinAscent value.
      • getUSWinDescent

        public int getUSWinDescent()

        Gets USWinDescent value.

        Returns:
        USWinDescent value.
      • getULCodePageRange

        public long[] getULCodePageRange()

        Gets ULCodePageRange value.

        Returns:
        ULCodePageRange value.
      • getSXHeight

        public short getSXHeight()

        Gets SXHeight value.

        Returns:
        SXHeight value.
      • getSCapHeight

        public short getSCapHeight()

        Gets SCapHeight value.

        Returns:
        SCapHeight value.
      • getUSDefaultChar

        public int getUSDefaultChar()

        Gets USDefaultChar value.

        Returns:
        USDefaultChar value.
      • getUSBreakChar

        public int getUSBreakChar()

        Gets USBreakChar value.

        Returns:
        USBreakChar value.
      • getUSMaxContext

        public int getUSMaxContext()

        Gets USMaxContext value.

        Returns:
        UsMaxContext value.
      • getLicenseFlags

        public LicenseFlags getLicenseFlags()

        Gets an embedded flags(fsType) in object representation.

        Returns:
        Embedded flags.