public class WrapperFontData extends FontData
| Constructor and Description |
|---|
WrapperFontData(FontData fontData) |
| Modifier and Type | Method and Description |
|---|---|
Subset |
createSubset()
Create a subset for this font.
|
boolean |
equals(Object obj) |
CacheSupportInfo |
getCacheSupportInfo()
Return the CacheSupportInfo that this font matches
|
byte[] |
getContainerFingerprint() |
double |
getCoolTypeCapHeight()
Returns the CoolTypeCapHeight of this font.
|
Rect |
getCoolTypeFontBBox() |
Rect |
getCoolTypeGlyphBBox(int glyphID) |
int |
getCoolTypeGlyphForChar(int unicodeScalarValue)
Return the glyph used by CoolType for a character.
|
Rect |
getCoolTypeIcfBox() |
Rect |
getCoolTypeIdeoEmBox() |
LineMetrics |
getCoolTypeLineMetrics()
Emulates the CoolType API CTFontDict:GetHorizontalMetrics CoolType API.
|
boolean |
getCoolTypeProportionalRomanFromFontProperties() |
CoolTypeScript |
getCoolTypeScript() |
UnderlineMetrics |
getCoolTypeUnderlineMetrics() |
double |
getCoolTypeUnitsPerEm() |
double |
getCoolTypeXHeight() |
CSS20FontDescription[] |
getCSS20FontDescription() |
Permission |
getEmbeddingPermission(boolean wasEmbedded) |
Rect |
getFontBBox() |
FontData |
getFontData() |
FXGFontDescription[] |
getFXGFontDescription(Platform platform,
ULocale locale)
Return the FXG descriptions for this font.
|
Rect |
getGlyphBBox(int gid)
Get the bounding box of a glyph.
|
int |
getGlyphForChar(int unicodeScalarValue)
Return the glyph to use to display a character.
|
void |
getGlyphOutline(int gid,
OutlineConsumer consumer)
Send a glyph's outline to an OutlineConsumer.
|
double |
getHorizontalAdvance(int gid)
Get the horizontal advance of a glyph.
|
LineMetrics |
getLineMetrics()
Return the line metrics for this font.
|
int |
getNumGlyphs()
Return the number of glyphs in this font.
|
PDFFontDescription |
getPDFFontDescription(Font font) |
PlatformFontDescription[] |
getPlatformFontDescription(Platform platform,
ULocale locale)
Return the platform descriptions for this font.
|
double[] |
getPointSizeRange()
Return the range of point sizes for which this font has been designed.
|
PostscriptFontDescription[] |
getPostscriptFontDescription()
Return the postscript descriptions that this font matches.
|
CSS20FontDescription |
getPreferredCSS20FontDescription() |
Scaler |
getScaler()
Get a scaler for this font.
|
Scaler |
getScaler(ScanConverter c)
Get a scaler for this font, using a specific scan converter.
|
CatalogDescription |
getSelectionDescription() |
SWFFont4Description |
getSWFFont4Description(boolean wasEmbedded) |
SWFFontDescription |
getSWFFontDescription(boolean wasEmbedded) |
double |
getUnitsPerEmX() |
double |
getUnitsPerEmY() |
XDCFontDescription |
getXDCFontDescription(Font font) |
boolean |
hasCoolTypeProportionalRoman()
Determines whether a font has proportional roman, as defined by CoolType.
|
int |
hashCode() |
boolean |
isSymbolic()
Tell whether this font is symbolic.
|
void |
subsetAndStream(Subset subset,
OutputStream out,
boolean preserveROS)
Subset and stream this font for PDF use.
|
String |
toString() |
public WrapperFontData(FontData fontData)
public FontData getFontData() throws InvalidFontException, UnsupportedFontException
public Subset createSubset() throws InvalidFontException, UnsupportedFontException
FontDatacreateSubset in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic byte[] getContainerFingerprint()
getContainerFingerprint in class FontDatapublic double getCoolTypeCapHeight()
throws UnsupportedFontException,
InvalidFontException
FontDatagetCoolTypeCapHeight in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic Rect getCoolTypeFontBBox() throws InvalidFontException, UnsupportedFontException
getCoolTypeFontBBox in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic Rect getCoolTypeGlyphBBox(int glyphID) throws UnsupportedFontException, InvalidFontException
getCoolTypeGlyphBBox in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic int getCoolTypeGlyphForChar(int unicodeScalarValue)
throws InvalidFontException,
UnsupportedFontException
FontDatagetCoolTypeGlyphForChar in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic Rect getCoolTypeIcfBox() throws UnsupportedFontException, InvalidFontException
getCoolTypeIcfBox in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic Rect getCoolTypeIdeoEmBox() throws UnsupportedFontException, InvalidFontException
getCoolTypeIdeoEmBox in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic LineMetrics getCoolTypeLineMetrics() throws UnsupportedFontException, InvalidFontException
FontDataSee also the FontData.getLineMetrics() method.
getCoolTypeLineMetrics in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic boolean getCoolTypeProportionalRomanFromFontProperties()
throws InvalidFontException
getCoolTypeProportionalRomanFromFontProperties in class FontDataInvalidFontExceptionpublic CoolTypeScript getCoolTypeScript() throws UnsupportedFontException, InvalidFontException
getCoolTypeScript in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic UnderlineMetrics getCoolTypeUnderlineMetrics() throws UnsupportedFontException, InvalidFontException
getCoolTypeUnderlineMetrics in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic double getCoolTypeUnitsPerEm()
throws UnsupportedFontException,
InvalidFontException
getCoolTypeUnitsPerEm in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic double getCoolTypeXHeight()
throws UnsupportedFontException,
InvalidFontException
getCoolTypeXHeight in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic CSS20FontDescription[] getCSS20FontDescription() throws InvalidFontException, UnsupportedFontException
getCSS20FontDescription in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic Permission getEmbeddingPermission(boolean wasEmbedded) throws InvalidFontException, UnsupportedFontException
getEmbeddingPermission in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic Rect getFontBBox() throws InvalidFontException, UnsupportedFontException
getFontBBox in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic FXGFontDescription[] getFXGFontDescription(Platform platform, ULocale locale) throws InvalidFontException, UnsupportedFontException
FontDatagetFXGFontDescription in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic Rect getGlyphBBox(int gid) throws UnsupportedFontException, InvalidFontException
FontDatagetGlyphBBox in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic int getGlyphForChar(int unicodeScalarValue)
throws InvalidFontException,
UnsupportedFontException
FontDatagetGlyphForChar in class FontDataunicodeScalarValue - the Unicode scalar value of the character;
(by definition, surrogate code points are not Unicode scalar values).InvalidFontExceptionUnsupportedFontExceptionpublic void getGlyphOutline(int gid,
OutlineConsumer consumer)
throws InvalidFontException,
UnsupportedFontException
FontDatagetGlyphOutline in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic double getHorizontalAdvance(int gid)
throws InvalidGlyphException,
UnsupportedFontException,
InvalidFontException
FontDatagetHorizontalAdvance in class FontDataInvalidGlyphExceptionUnsupportedFontExceptionInvalidFontExceptionpublic LineMetrics getLineMetrics() throws UnsupportedFontException, InvalidFontException
FontDataSome font formats do not support the notion of line metrics, and in those cases, this method returns null.
See also the FontData.getCoolTypeLineMetrics() method.
getLineMetrics in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic int getNumGlyphs()
throws InvalidFontException,
UnsupportedFontException
FontDatagetNumGlyphs in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic PDFFontDescription getPDFFontDescription(Font font) throws UnsupportedFontException, InvalidFontException
getPDFFontDescription in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic PlatformFontDescription[] getPlatformFontDescription(Platform platform, ULocale locale) throws InvalidFontException, UnsupportedFontException
FontDatagetPlatformFontDescription in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic double[] getPointSizeRange()
throws InvalidFontException,
UnsupportedFontException
FontDatagetPointSizeRange in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic PostscriptFontDescription[] getPostscriptFontDescription() throws InvalidFontException, UnsupportedFontException
FontDatagetPostscriptFontDescription in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic CSS20FontDescription getPreferredCSS20FontDescription() throws InvalidFontException, UnsupportedFontException
getPreferredCSS20FontDescription in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic Scaler getScaler() throws InvalidFontException, UnsupportedFontException
FontDatagetScaler in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic Scaler getScaler(ScanConverter c) throws InvalidFontException, UnsupportedFontException
FontDatagetScaler in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic CatalogDescription getSelectionDescription() throws InvalidFontException, UnsupportedFontException
getSelectionDescription in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic SWFFont4Description getSWFFont4Description(boolean wasEmbedded) throws UnsupportedFontException, InvalidFontException
getSWFFont4Description in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic SWFFontDescription getSWFFontDescription(boolean wasEmbedded) throws UnsupportedFontException, InvalidFontException
getSWFFontDescription in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic double getUnitsPerEmX()
throws UnsupportedFontException,
InvalidFontException
getUnitsPerEmX in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic double getUnitsPerEmY()
throws UnsupportedFontException,
InvalidFontException
getUnitsPerEmY in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic XDCFontDescription getXDCFontDescription(Font font) throws UnsupportedFontException, InvalidFontException
getXDCFontDescription in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic boolean hasCoolTypeProportionalRoman()
throws InvalidFontException,
UnsupportedFontException
FontDatahasCoolTypeProportionalRoman in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic boolean isSymbolic()
throws UnsupportedFontException,
InvalidFontException
FontDataisSymbolic in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic void subsetAndStream(Subset subset, OutputStream out, boolean preserveROS) throws InvalidFontException, UnsupportedFontException, IOException
FontDatasubsetAndStream in class FontDataout - the OutputStream to which the bytes are streamedpreserveROS - tells whether to preserve the cid -> gid mappingInvalidFontExceptionUnsupportedFontExceptionIOExceptionpublic CacheSupportInfo getCacheSupportInfo() throws UnsupportedFontException, InvalidFontException
FontDatagetCacheSupportInfo in class FontDataUnsupportedFontExceptionInvalidFontExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved