public abstract class PrismFontFile extends Object implements FontResource, FontConstants
Modifier and Type | Field and Description |
---|---|
static int |
FAMILY_NAME_ID |
static int |
FULL_NAME_ID |
static int |
MAC_PLATFORM_ID |
static int |
MACROMAN_ENGLISH_LANG |
static int |
MACROMAN_SPECIFIC_ID |
static short |
MS_ENGLISH_LOCALE_ID |
static int |
MS_PLATFORM_ID |
static int |
PS_NAME_ID |
static int |
STYLE_NAME_ID |
AA_GREYSCALE, AA_LCD, AFRC, CLIG, CSWH, DLIG, FRAC, HLIG, KERN, LIGA, LIGATURES, NALT, RLIG, RUBY, SALT, SMCP, SS01, SS02, SS03, SS04, SS05, SS06, SS07, SWSH, ZERO
cmapTag, DIRECTORYENTRYSIZE, DIRECTORYHEADERSIZE, headTag, hheaTag, hmtxTag, maxpTag, nameTag, os_2Tag, ottoTag, postTag, trueTag, ttcfTag, TTCHEADERSIZE, v1ttTag, WOFFDIRECTORYENTRYSIZE, WOFFHEADERSIZE, woffTag
Modifier | Constructor and Description |
---|---|
protected |
PrismFontFile(String name,
String filename,
int fIndex,
boolean register,
boolean embedded,
boolean copy,
boolean tracked) |
public static final int MAC_PLATFORM_ID
public static final int MACROMAN_SPECIFIC_ID
public static final int MACROMAN_ENGLISH_LANG
public static final int MS_PLATFORM_ID
public static final short MS_ENGLISH_LOCALE_ID
public static final int FAMILY_NAME_ID
public static final int STYLE_NAME_ID
public static final int FULL_NAME_ID
public static final int PS_NAME_ID
protected void disposeOnShutdown()
public int getDefaultAAMode()
getDefaultAAMode
in interface FontResource
public boolean isInstalledFont()
public String getFileName()
getFileName
in interface FontResource
protected int getFileSize()
protected int getFontIndex()
public String getFullName()
getFullName
in interface FontResource
public String getPSName()
getPSName
in interface FontResource
public String getFamilyName()
getFamilyName
in interface FontResource
public String getStyleName()
getStyleName
in interface FontResource
public String getLocaleFullName()
getLocaleFullName
in interface FontResource
public String getLocaleFamilyName()
getLocaleFamilyName
in interface FontResource
public String getLocaleStyleName()
getLocaleStyleName
in interface FontResource
public int getFeatures()
getFeatures
in interface FontResource
public Map getStrikeMap()
getStrikeMap
in interface FontResource
protected abstract PrismFontStrike createStrike(float size, BaseTransform transform, int aaMode, FontStrikeDesc desc)
public FontStrike getStrike(float size, BaseTransform transform, int aaMode)
getStrike
in interface FontResource
protected abstract int[] createGlyphBoundingBox(int gc)
public float[] getGlyphBoundingBox(int gc, float size, float[] retArr)
getGlyphBoundingBox
in interface FontResource
protected boolean isCFF()
public Object getPeer()
getPeer
in interface FontResource
public void setPeer(Object peer)
setPeer
in interface FontResource
public int getFontCount()
public boolean isBold()
isBold
in interface FontResource
public boolean isItalic()
isItalic
in interface FontResource
public boolean isDecoded()
public boolean isRegistered()
public boolean isEmbeddedFont()
isEmbeddedFont
in interface FontResource
public int getUnitsPerEm()
public short getIndexToLocFormat()
public int getNumHMetrics()
public CharToGlyphMapper getGlyphMapper()
getGlyphMapper
in interface FontResource
public FontStrike getStrike(float size, BaseTransform transform)
getStrike
in interface FontResource
public float getAdvance(int glyphCode, float ptSize)
getAdvance
in interface FontResource
public PrismMetrics getFontMetrics(float ptSize)
Copyright © 2020. All rights reserved.