public abstract class CFFFont extends FontData
| Modifier and Type | Method and Description |
|---|---|
CacheSupportInfo |
getCacheSupportInfo()
Return the CacheSupportInfo that this font matches
|
Rect |
getCoolTypeIcfBox()
Compute the IcfBox.
|
Rect |
getCoolTypeIdeoEmBox() |
boolean |
getCoolTypeProportionalRomanFromFontProperties() |
CoolTypeScript |
getCoolTypeScript() |
UnderlineMetrics |
getCoolTypeUnderlineMetrics() |
UnderlineMetrics |
getCoolTypeUnderlineMetrics(double coolTypeUnitsPerEm,
double unitsPerEmY) |
Set |
getCSSFamilyNames()
Return the set of CSS font-family names that this font matches.
|
CSS20Attribute.CSSStretchValue |
getCSSStretchValue()
Return the CSS fontstretch of this font.
|
int |
getCSSWeight()
Return the CSS weight of this font.
|
abstract Matrix |
getFontMatrix() |
FXGFontDescription[] |
getFXGFontDescription(Platform platform,
ULocale locale)
Return the FXG descriptions for this font.
|
Rect |
getGlyphBBox(int gid)
Get the bounding box for a glyph, in metric space.
|
abstract int |
getGlyphCid(int glyphID)
Get the CID associated with glyph
glyphID. |
abstract int |
getGlyphForChar(int usv)
Return the glyph to use to display a character.
|
abstract String |
getGlyphName(int gid) |
abstract void |
getGlyphOutline(int gid,
OutlineConsumer consumer)
Send a glyph's outline to an OutlineConsumer.
|
abstract double |
getHorizontalAdvance(int gid)
Get the horizontal advance of a glyph.
|
String |
getName() |
abstract void |
getOutline(int gid,
Type2OutlineParser parser,
OutlineConsumer consumer) |
PlatformFontDescription[] |
getPlatformFontDescription(Platform platform,
ULocale locale)
Return the platform descriptions for this font.
|
PostscriptFontDescription[] |
getPostscriptFontDescription()
Return the postscript descriptions that this font matches.
|
String |
getPreferredCSSFamilyName()
Return the preferred CSS font-family name.
|
abstract ROS |
getROS()
Get the ROS associated with this font.
|
Scaler |
getScaler(ScanConverter c)
Get a scaler for this font, using a specific scan converter.
|
CatalogDescription |
getSelectionDescription() |
abstract double |
getStemVForGlyph(int gid) |
SWFFont4Description |
getSWFFont4Description(boolean wasEmbedded) |
SWFFontDescription |
getSWFFontDescription(boolean wasEmbedded) |
double |
getUnitsPerEmX() |
double |
getUnitsPerEmY() |
boolean |
isCSSStyleItalic()
Tell if the font matches the CSS font-style italic.
|
boolean |
isCSSStyleNormal()
Tell if the font matches the CSS font-style normal.
|
boolean |
isCSSStyleOblique()
Tell if the font matches the CSS font-style oblique.
|
boolean |
isCSSVariantNormal()
Tell if the font matches the CSS font-variant normal.
|
boolean |
isCSSVariantSmallCaps()
Tell if the font matches the CSS font-variant small-caps.
|
boolean |
isFixedPitch() |
abstract void |
stream(OutputStream out,
Integer fsType) |
void |
subsetAndStream(Subset subset,
OutputStream os,
boolean preserveROS)
Subset and stream this font for PDF use.
|
abstract void |
subsetAndStream(Subset subset,
OutputStream os,
boolean preserveROS,
Integer fsType)
A version of subsetAndStream that can take an fsType value to be added to the
fonts postscript string.
|
createSubset, getContainerFingerprint, getCoolTypeCapHeight, getCoolTypeFontBBox, getCoolTypeGlyphBBox, getCoolTypeGlyphForChar, getCoolTypeLineMetrics, getCoolTypeUnitsPerEm, getCoolTypeXHeight, getCSS20FontDescription, getEmbeddingPermission, getFontBBox, getLineMetrics, getNumGlyphs, getPDFFontDescription, getPointSizeRange, getPreferredCSS20FontDescription, getScaler, getXDCFontDescription, hasCoolTypeProportionalRoman, isSymbolicpublic String getName()
public abstract Matrix getFontMatrix()
public double getUnitsPerEmX()
throws UnsupportedFontException,
InvalidFontException
getUnitsPerEmX in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic double getUnitsPerEmY()
throws UnsupportedFontException,
InvalidFontException
getUnitsPerEmY in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic boolean getCoolTypeProportionalRomanFromFontProperties()
throws InvalidFontException
getCoolTypeProportionalRomanFromFontProperties in class FontDataInvalidFontExceptionpublic CoolTypeScript getCoolTypeScript() throws UnsupportedFontException
getCoolTypeScript in class FontDataUnsupportedFontExceptionpublic Rect getCoolTypeIdeoEmBox() throws InvalidFontException, UnsupportedFontException
getCoolTypeIdeoEmBox in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic Rect getCoolTypeIcfBox() throws InvalidFontException, UnsupportedFontException
getCoolTypeIcfBox in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic UnderlineMetrics getCoolTypeUnderlineMetrics() throws UnsupportedFontException, InvalidFontException
getCoolTypeUnderlineMetrics in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic UnderlineMetrics getCoolTypeUnderlineMetrics(double coolTypeUnitsPerEm, double unitsPerEmY) throws UnsupportedFontException, InvalidFontException
public abstract int getGlyphForChar(int usv)
throws InvalidFontException,
UnsupportedFontException
getGlyphForChar in class FontDatausv - the Unicode scalar value of the character;
(by definition, surrogate code points are not Unicode scalar values).InvalidFontExceptionUnsupportedFontExceptionpublic abstract double getHorizontalAdvance(int gid)
throws InvalidFontException,
UnsupportedFontException
FontDatagetHorizontalAdvance in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic abstract String getGlyphName(int gid) throws InvalidFontException, UnsupportedFontException
public abstract void getGlyphOutline(int gid,
OutlineConsumer consumer)
throws InvalidFontException,
UnsupportedFontException
FontDatagetGlyphOutline in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic abstract void getOutline(int gid,
Type2OutlineParser parser,
OutlineConsumer consumer)
throws InvalidFontException,
UnsupportedFontException
public Rect getGlyphBBox(int gid) throws UnsupportedFontException, InvalidFontException
getGlyphBBox in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic abstract int getGlyphCid(int glyphID)
throws InvalidFontException,
UnsupportedFontException
glyphID.
Returns -1 if getROS() returns null.InvalidFontExceptionUnsupportedFontExceptionpublic Scaler getScaler(ScanConverter c) throws InvalidFontException, UnsupportedFontException
FontDatagetScaler in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic abstract double getStemVForGlyph(int gid)
throws InvalidFontException
InvalidFontExceptionpublic Set getCSSFamilyNames()
public String getPreferredCSSFamilyName()
public boolean isCSSStyleNormal()
public boolean isFixedPitch()
public boolean isCSSStyleItalic()
public boolean isCSSStyleOblique()
public boolean isCSSVariantNormal()
public boolean isCSSVariantSmallCaps()
public int getCSSWeight()
public CSS20Attribute.CSSStretchValue getCSSStretchValue()
public CacheSupportInfo getCacheSupportInfo() throws InvalidFontException, UnsupportedFontException
FontDatagetCacheSupportInfo in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic PostscriptFontDescription[] getPostscriptFontDescription()
FontDatagetPostscriptFontDescription in class FontDatapublic FXGFontDescription[] getFXGFontDescription(Platform platform, ULocale locale) throws InvalidFontException, UnsupportedFontException
FontDatagetFXGFontDescription in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic PlatformFontDescription[] getPlatformFontDescription(Platform platform, ULocale locale) throws InvalidFontException, UnsupportedFontException
FontDatagetPlatformFontDescription in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic abstract ROS getROS()
public SWFFontDescription getSWFFontDescription(boolean wasEmbedded) throws UnsupportedFontException, InvalidFontException
getSWFFontDescription in class FontDataUnsupportedFontExceptionInvalidFontExceptionpublic void subsetAndStream(Subset subset, OutputStream os, boolean preserveROS) throws InvalidFontException, UnsupportedFontException, IOException
FontDatasubsetAndStream in class FontDataos - the OutputStream to which the bytes are streamedpreserveROS - tells whether to preserve the cid -> gid mappingInvalidFontExceptionUnsupportedFontExceptionIOExceptionpublic abstract void stream(OutputStream out, Integer fsType) throws InvalidFontException, UnsupportedFontException, IOException
public abstract void subsetAndStream(Subset subset, OutputStream os, boolean preserveROS, Integer fsType) throws InvalidFontException, UnsupportedFontException, IOException
fsType - if non-null an integer as described in technote 5147
http://partners.adobe.com/public/developer/en/acrobat/sdk/FontPolicies.pdf
"Font Embedding Guidelines for Adobe Third-party Developers".InvalidFontExceptionUnsupportedFontExceptionIOExceptionpublic CatalogDescription getSelectionDescription() throws InvalidFontException, UnsupportedFontException
getSelectionDescription in class FontDataInvalidFontExceptionUnsupportedFontExceptionpublic SWFFont4Description getSWFFont4Description(boolean wasEmbedded) throws UnsupportedFontException, InvalidFontException
getSWFFont4Description in class FontDataUnsupportedFontExceptionInvalidFontExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved