public class OS2WindowsMetricsTable extends TTFTable
Modifier and Type | Field and Description |
---|---|
static int |
FAMILY_CLASS_CLAREDON_SERIFS
Family class constant.
|
static int |
FAMILY_CLASS_FREEFORM_SERIFS
Family class constant.
|
static int |
FAMILY_CLASS_MODERN_SERIFS
Family class constant.
|
static int |
FAMILY_CLASS_NO_CLASSIFICATION
Family class constant.
|
static int |
FAMILY_CLASS_OLDSTYLE_SERIFS
Family class constant.
|
static int |
FAMILY_CLASS_ORNAMENTALS
Family class constant.
|
static int |
FAMILY_CLASS_SANS_SERIF
Family class constant.
|
static int |
FAMILY_CLASS_SCRIPTS
Family class constant.
|
static int |
FAMILY_CLASS_SLAB_SERIFS
Family class constant.
|
static int |
FAMILY_CLASS_SYMBOLIC
Family class constant.
|
static int |
FAMILY_CLASS_TRANSITIONAL_SERIFS
Family class constant.
|
static short |
FSTYPE_BITMAP_ONLY
Bitmap embedding only: only bitmaps contained in the font may be embedded.
|
static short |
FSTYPE_EDITIBLE
Editable embedding: the font may be embedded but must only be installed temporarily on other
systems.
|
static short |
FSTYPE_NO_SUBSETTING
No subsetting: the font must not be subsetted prior to embedding.
|
static short |
FSTYPE_PREVIEW_AND_PRINT
Preview and Print embedding: the font may be embedded, and temporarily loaded on the
remote system.
|
static short |
FSTYPE_RESTRICTED
Restricted License embedding: must not be modified, embedded or exchanged in any manner.
|
static String |
TAG
A tag that identifies this table type.
|
static int |
WEIGHT_CLASS_BLACK
Weight class constant.
|
static int |
WEIGHT_CLASS_BOLD
Weight class constant.
|
static int |
WEIGHT_CLASS_EXTRA_BOLD
Weight class constant.
|
static int |
WEIGHT_CLASS_LIGHT
Weight class constant.
|
static int |
WEIGHT_CLASS_MEDIUM
Weight class constant.
|
static int |
WEIGHT_CLASS_NORMAL
Weight class constant.
|
static int |
WEIGHT_CLASS_SEMI_BOLD
Weight class constant.
|
static int |
WEIGHT_CLASS_THIN
Weight class constant.
|
static int |
WEIGHT_CLASS_ULTRA_LIGHT
Weight class constant.
|
static int |
WIDTH_CLASS_CONDENSED
Width class constant.
|
static int |
WIDTH_CLASS_EXPANDED
Width class constant.
|
static int |
WIDTH_CLASS_EXTRA_CONDENSED
Width class constant.
|
static int |
WIDTH_CLASS_EXTRA_EXPANDED
Width class constant.
|
static int |
WIDTH_CLASS_MEDIUM
Width class constant.
|
static int |
WIDTH_CLASS_SEMI_CONDENSED
Width class constant.
|
static int |
WIDTH_CLASS_SEMI_EXPANDED
Width class constant.
|
static int |
WIDTH_CLASS_ULTRA_CONDENSED
Width class constant.
|
static int |
WIDTH_CLASS_ULTRA_EXPANDED
Width class constant.
|
font, initialized
Modifier and Type | Method and Description |
---|---|
String |
getAchVendId() |
short |
getAverageCharWidth() |
int |
getBreakChar()
Returns the usBreakChar.
|
int |
getCapHeight()
Returns the sCapHeight.
|
long |
getCodePageRange1() |
long |
getCodePageRange2() |
int |
getDefaultChar()
Returns the usDefaultChar.
|
int |
getFamilyClass() |
int |
getFirstCharIndex() |
int |
getFsSelection() |
short |
getFsType() |
int |
getHeight()
Returns the sxHeight.
|
int |
getLastCharIndex() |
int |
getMaxContext()
Returns the usMaxContext.
|
byte[] |
getPanose() |
short |
getStrikeoutPosition() |
short |
getStrikeoutSize() |
short |
getSubscriptXOffset() |
short |
getSubscriptXSize() |
short |
getSubscriptYOffset() |
short |
getSubscriptYSize() |
short |
getSuperscriptXOffset() |
short |
getSuperscriptXSize() |
short |
getSuperscriptYOffset() |
short |
getSuperscriptYSize() |
int |
getTypoAscender() |
int |
getTypoDescender() |
int |
getTypoLineGap() |
long |
getUnicodeRange1() |
long |
getUnicodeRange2() |
long |
getUnicodeRange3() |
long |
getUnicodeRange4() |
int |
getVersion() |
int |
getWeightClass() |
int |
getWidthClass() |
int |
getWinAscent() |
int |
getWinDescent() |
void |
read(TrueTypeFont ttf,
org.apache.fontbox.ttf.TTFDataStream data)
This will read the required data from the stream.
|
void |
setAchVendId(String achVendIdValue) |
void |
setAverageCharWidth(short averageCharWidthValue) |
void |
setCodePageRange1(long codePageRange1Value) |
void |
setCodePageRange2(long codePageRange2Value) |
void |
setFamilyClass(int familyClassValue) |
void |
setFirstCharIndex(int firstCharIndexValue) |
void |
setFsSelection(int fsSelectionValue) |
void |
setFsType(short fsTypeValue) |
void |
setLastCharIndex(int lastCharIndexValue) |
void |
setPanose(byte[] panoseValue) |
void |
setStrikeoutPosition(short strikeoutPositionValue) |
void |
setStrikeoutSize(short strikeoutSizeValue) |
void |
setSubscriptXOffset(short subscriptXOffsetValue) |
void |
setSubscriptXSize(short subscriptXSizeValue) |
void |
setSubscriptYOffset(short subscriptYOffsetValue) |
void |
setSubscriptYSize(short subscriptYSizeValue) |
void |
setSuperscriptXOffset(short superscriptXOffsetValue) |
void |
setSuperscriptXSize(short superscriptXSizeValue) |
void |
setSuperscriptYOffset(short superscriptYOffsetValue) |
void |
setSuperscriptYSize(short superscriptYSizeValue) |
void |
setTypoAscender(int typoAscenderValue) |
void |
setTypoDescender(int typoDescenderValue) |
void |
setTypoLineGap(int typeLineGapValue) |
void |
setUnicodeRange1(long unicodeRange1Value) |
void |
setUnicodeRange2(long unicodeRange2Value) |
void |
setUnicodeRange3(long unicodeRange3Value) |
void |
setUnicodeRange4(long unicodeRange4Value) |
void |
setVersion(int versionValue) |
void |
setWeightClass(int weightClassValue) |
void |
setWidthClass(int widthClassValue) |
void |
setWinAscent(int winAscentValue) |
void |
setWinDescent(int winDescentValue) |
getCheckSum, getInitialized, getLength, getOffset, getTag
public static final int WEIGHT_CLASS_THIN
public static final int WEIGHT_CLASS_ULTRA_LIGHT
public static final int WEIGHT_CLASS_LIGHT
public static final int WEIGHT_CLASS_NORMAL
public static final int WEIGHT_CLASS_MEDIUM
public static final int WEIGHT_CLASS_SEMI_BOLD
public static final int WEIGHT_CLASS_BOLD
public static final int WEIGHT_CLASS_EXTRA_BOLD
public static final int WEIGHT_CLASS_BLACK
public static final int WIDTH_CLASS_ULTRA_CONDENSED
public static final int WIDTH_CLASS_EXTRA_CONDENSED
public static final int WIDTH_CLASS_CONDENSED
public static final int WIDTH_CLASS_SEMI_CONDENSED
public static final int WIDTH_CLASS_MEDIUM
public static final int WIDTH_CLASS_SEMI_EXPANDED
public static final int WIDTH_CLASS_EXPANDED
public static final int WIDTH_CLASS_EXTRA_EXPANDED
public static final int WIDTH_CLASS_ULTRA_EXPANDED
public static final int FAMILY_CLASS_NO_CLASSIFICATION
public static final int FAMILY_CLASS_OLDSTYLE_SERIFS
public static final int FAMILY_CLASS_TRANSITIONAL_SERIFS
public static final int FAMILY_CLASS_MODERN_SERIFS
public static final int FAMILY_CLASS_CLAREDON_SERIFS
public static final int FAMILY_CLASS_SLAB_SERIFS
public static final int FAMILY_CLASS_FREEFORM_SERIFS
public static final int FAMILY_CLASS_SANS_SERIF
public static final int FAMILY_CLASS_ORNAMENTALS
public static final int FAMILY_CLASS_SCRIPTS
public static final int FAMILY_CLASS_SYMBOLIC
public static final short FSTYPE_RESTRICTED
For Restricted License embedding to take effect, it must be the only level of embedding selected.
public static final short FSTYPE_PREVIEW_AND_PRINT
public static final short FSTYPE_EDITIBLE
public static final short FSTYPE_NO_SUBSETTING
public static final short FSTYPE_BITMAP_ONLY
public static final String TAG
public String getAchVendId()
public void setAchVendId(String achVendIdValue)
achVendIdValue
- The achVendId to set.public short getAverageCharWidth()
public void setAverageCharWidth(short averageCharWidthValue)
averageCharWidthValue
- The averageCharWidth to set.public long getCodePageRange1()
public void setCodePageRange1(long codePageRange1Value)
codePageRange1Value
- The codePageRange1 to set.public long getCodePageRange2()
public void setCodePageRange2(long codePageRange2Value)
codePageRange2Value
- The codePageRange2 to set.public int getFamilyClass()
public void setFamilyClass(int familyClassValue)
familyClassValue
- The familyClass to set.public int getFirstCharIndex()
public void setFirstCharIndex(int firstCharIndexValue)
firstCharIndexValue
- The firstCharIndex to set.public int getFsSelection()
public void setFsSelection(int fsSelectionValue)
fsSelectionValue
- The fsSelection to set.public short getFsType()
public void setFsType(short fsTypeValue)
fsTypeValue
- The fsType to set.public int getLastCharIndex()
public void setLastCharIndex(int lastCharIndexValue)
lastCharIndexValue
- The lastCharIndex to set.public byte[] getPanose()
public void setPanose(byte[] panoseValue)
panoseValue
- The panose to set.public short getStrikeoutPosition()
public void setStrikeoutPosition(short strikeoutPositionValue)
strikeoutPositionValue
- The strikeoutPosition to set.public short getStrikeoutSize()
public void setStrikeoutSize(short strikeoutSizeValue)
strikeoutSizeValue
- The strikeoutSize to set.public short getSubscriptXOffset()
public void setSubscriptXOffset(short subscriptXOffsetValue)
subscriptXOffsetValue
- The subscriptXOffset to set.public short getSubscriptXSize()
public void setSubscriptXSize(short subscriptXSizeValue)
subscriptXSizeValue
- The subscriptXSize to set.public short getSubscriptYOffset()
public void setSubscriptYOffset(short subscriptYOffsetValue)
subscriptYOffsetValue
- The subscriptYOffset to set.public short getSubscriptYSize()
public void setSubscriptYSize(short subscriptYSizeValue)
subscriptYSizeValue
- The subscriptYSize to set.public short getSuperscriptXOffset()
public void setSuperscriptXOffset(short superscriptXOffsetValue)
superscriptXOffsetValue
- The superscriptXOffset to set.public short getSuperscriptXSize()
public void setSuperscriptXSize(short superscriptXSizeValue)
superscriptXSizeValue
- The superscriptXSize to set.public short getSuperscriptYOffset()
public void setSuperscriptYOffset(short superscriptYOffsetValue)
superscriptYOffsetValue
- The superscriptYOffset to set.public short getSuperscriptYSize()
public void setSuperscriptYSize(short superscriptYSizeValue)
superscriptYSizeValue
- The superscriptYSize to set.public int getTypoLineGap()
public void setTypoLineGap(int typeLineGapValue)
typeLineGapValue
- The typoLineGap to set.public int getTypoAscender()
public void setTypoAscender(int typoAscenderValue)
typoAscenderValue
- The typoAscender to set.public int getTypoDescender()
public void setTypoDescender(int typoDescenderValue)
typoDescenderValue
- The typoDescender to set.public long getUnicodeRange1()
public void setUnicodeRange1(long unicodeRange1Value)
unicodeRange1Value
- The unicodeRange1 to set.public long getUnicodeRange2()
public void setUnicodeRange2(long unicodeRange2Value)
unicodeRange2Value
- The unicodeRange2 to set.public long getUnicodeRange3()
public void setUnicodeRange3(long unicodeRange3Value)
unicodeRange3Value
- The unicodeRange3 to set.public long getUnicodeRange4()
public void setUnicodeRange4(long unicodeRange4Value)
unicodeRange4Value
- The unicodeRange4 to set.public int getVersion()
public void setVersion(int versionValue)
versionValue
- The version to set.public int getWeightClass()
public void setWeightClass(int weightClassValue)
weightClassValue
- The weightClass to set.public int getWidthClass()
public void setWidthClass(int widthClassValue)
widthClassValue
- The widthClass to set.public int getWinAscent()
public void setWinAscent(int winAscentValue)
winAscentValue
- The winAscent to set.public int getWinDescent()
public void setWinDescent(int winDescentValue)
winDescentValue
- The winDescent to set.public int getHeight()
public int getCapHeight()
public int getDefaultChar()
public int getBreakChar()
public int getMaxContext()
public void read(TrueTypeFont ttf, org.apache.fontbox.ttf.TTFDataStream data) throws IOException
ttf
- The font that is being read.data
- The stream to read the data from.IOException
- If there is an error reading the data.Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.