public final class Os2 extends Table
'OS/2' tables have only a minor version number. This implementation:
When some data is not present in the actual version of the table, the accessors return identified values.
Like all tables, these objects are immutable.
| Modifier and Type | Class and Description |
|---|---|
static class |
Os2.CodePage
Identifies a code page.
|
static interface |
Os2.SelectionBits |
static class |
Os2.UnicodeRange
Identifies a Unicode range.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCapHeight()
Get the sCapHeight.
|
EmbeddingPermission.OutlineRestriction |
getEmbeddingOutlineRestriction()
Get the outline restriction for embedding, using the
constants in
EmbeddingPermission. |
Permission |
getEmbeddingPermission()
Get the embedding permission for the font, using the
constants in
EmbeddingPermission. |
EmbeddingPermission.SubsettingRestriction |
getEmbeddingSubsettingRestriction()
Get the subsetting restriction for embedding, using the
constants in
EmbeddingPermission. |
int |
getFirstChar() |
int |
getLastChar() |
LineMetrics |
getLineMetrics()
Return the line metrics for this font.
|
int |
getSelection()
Get the fsSelection of this table.
|
int |
getTableVersion()
Get the version of this table.
|
int |
getTypoAscender()
Get the sTypoAscender of this table.
|
int |
getTypoDescender()
Get the sTypoDescender of this table.
|
int |
getTypoLineGap()
Get the sTypoLineGap of this table.
|
long |
getVendor()
Get the vendor.
|
int |
getWeightClass()
Get the usWeight of this table.
|
int |
getWidthClass()
Get the usWidth of this table.
|
int |
getWinAscent()
Get the usWinAscent of this table.
|
int |
getWinDescent()
Get the usWinDescent of this table.
|
int |
getxHeight()
Get the sxHeight.
|
int |
panoseIndicatesProportional() |
void |
stream(Map tables) |
void |
subsetAndStream(Subset subset,
Map tables) |
boolean |
supportsCodePage(Os2.CodePage cp)
Determine if a code page is supported.
|
boolean |
supportsUnicodeRange(Os2.UnicodeRange cp)
Determine if a Unicode range is supported.
|
public int getTableVersion()
throws InvalidFontException
InvalidFontExceptionpublic int getWeightClass()
throws InvalidFontException
InvalidFontExceptionpublic int getWidthClass()
throws InvalidFontException
InvalidFontExceptionpublic int panoseIndicatesProportional()
throws InvalidFontException
InvalidFontExceptionpublic int getSelection()
throws InvalidFontException
InvalidFontExceptionpublic int getFirstChar()
throws InvalidFontException
InvalidFontExceptionpublic int getLastChar()
throws InvalidFontException
InvalidFontExceptionpublic int getTypoAscender()
throws InvalidFontException
InvalidFontExceptionpublic int getTypoDescender()
throws InvalidFontException
InvalidFontExceptionpublic int getTypoLineGap()
throws InvalidFontException
InvalidFontExceptionpublic int getWinAscent()
throws InvalidFontException
InvalidFontExceptionpublic int getWinDescent()
throws InvalidFontException
InvalidFontExceptionpublic LineMetrics getLineMetrics() throws UnsupportedFontException, InvalidFontException
public long getVendor()
throws InvalidFontException
InvalidFontExceptionpublic int getxHeight()
throws InvalidFontException
InvalidFontExceptionpublic int getCapHeight()
throws InvalidFontException
InvalidFontExceptionpublic boolean supportsUnicodeRange(Os2.UnicodeRange cp) throws InvalidFontException
InvalidFontExceptionpublic boolean supportsCodePage(Os2.CodePage cp) throws InvalidFontException
InvalidFontExceptionpublic Permission getEmbeddingPermission() throws InvalidFontException
EmbeddingPermission.InvalidFontExceptionpublic EmbeddingPermission.SubsettingRestriction getEmbeddingSubsettingRestriction() throws InvalidFontException
EmbeddingPermission.InvalidFontExceptionpublic EmbeddingPermission.OutlineRestriction getEmbeddingOutlineRestriction() throws InvalidFontException
EmbeddingPermission.InvalidFontExceptionpublic void stream(Map tables)
Copyright © 2010 - 2020 Adobe. All Rights Reserved