class FallbackResource extends java.lang.Object implements CompositeFontResource
Modifier and Type | Field and Description |
---|---|
private int |
aaMode |
private FontResource[] |
fallbacks |
(package private) static FallbackResource[] |
greyFallBackResource |
private boolean |
isBold |
private boolean |
isItalic |
(package private) static FallbackResource[] |
lcdFallBackResource |
private java.util.ArrayList<java.lang.String> |
linkedFontFiles |
private java.util.ArrayList<java.lang.String> |
linkedFontNames |
private CompositeGlyphMapper |
mapper |
private FontResource[] |
nativeFallbacks |
(package private) java.util.Map<FontStrikeDesc,java.lang.ref.WeakReference<FontStrike>> |
strikeMap |
Constructor and Description |
---|
FallbackResource(boolean bold,
boolean italic,
int aaMode) |
Modifier and Type | Method and Description |
---|---|
float |
getAdvance(int glyphCode,
float size) |
int |
getDefaultAAMode() |
(package private) static FallbackResource |
getFallbackResource(boolean bold,
boolean italic,
int aaMode) |
java.lang.String |
getFamilyName() |
int |
getFeatures() |
java.lang.String |
getFileName() |
java.lang.String |
getFullName() |
float[] |
getGlyphBoundingBox(int glyphCode,
float size,
float[] retArr) |
CharToGlyphMapper |
getGlyphMapper() |
private void |
getLinkedFonts() |
java.lang.String |
getLocaleFamilyName() |
java.lang.String |
getLocaleFullName() |
java.lang.String |
getLocaleStyleName() |
int |
getNumSlots() |
java.lang.Object |
getPeer() |
java.lang.String |
getPSName() |
int |
getSlotForFont(java.lang.String fontName)
Returns the slot for the given font name.
|
FontResource |
getSlotResource(int slot) |
FontStrike |
getStrike(float size,
BaseTransform transform) |
FontStrike |
getStrike(float size,
BaseTransform transform,
int aaMode) |
java.util.Map<FontStrikeDesc,java.lang.ref.WeakReference<FontStrike>> |
getStrikeMap() |
java.lang.String |
getStyleName() |
boolean |
isBold() |
boolean |
isEmbeddedFont() |
boolean |
isItalic() |
void |
setPeer(java.lang.Object peer) |
private java.lang.String |
throwException() |
private java.util.ArrayList<java.lang.String> linkedFontFiles
private java.util.ArrayList<java.lang.String> linkedFontNames
private FontResource[] fallbacks
private FontResource[] nativeFallbacks
private boolean isBold
private boolean isItalic
private int aaMode
private CompositeGlyphMapper mapper
java.util.Map<FontStrikeDesc,java.lang.ref.WeakReference<FontStrike>> strikeMap
static FallbackResource[] greyFallBackResource
static FallbackResource[] lcdFallBackResource
public java.util.Map<FontStrikeDesc,java.lang.ref.WeakReference<FontStrike>> getStrikeMap()
getStrikeMap
in interface FontResource
static FallbackResource getFallbackResource(boolean bold, boolean italic, int aaMode)
public int getDefaultAAMode()
getDefaultAAMode
in interface FontResource
private java.lang.String throwException()
public java.lang.String getFullName()
getFullName
in interface FontResource
public java.lang.String getPSName()
getPSName
in interface FontResource
public java.lang.String getFamilyName()
getFamilyName
in interface FontResource
public java.lang.String getStyleName()
getStyleName
in interface FontResource
public java.lang.String getLocaleFullName()
getLocaleFullName
in interface FontResource
public java.lang.String getLocaleFamilyName()
getLocaleFamilyName
in interface FontResource
public java.lang.String getLocaleStyleName()
getLocaleStyleName
in interface FontResource
public boolean isBold()
isBold
in interface FontResource
public boolean isItalic()
isItalic
in interface FontResource
public int getFeatures()
getFeatures
in interface FontResource
public java.lang.String getFileName()
getFileName
in interface FontResource
public java.lang.Object getPeer()
getPeer
in interface FontResource
public void setPeer(java.lang.Object peer)
setPeer
in interface FontResource
public boolean isEmbeddedFont()
isEmbeddedFont
in interface FontResource
public CharToGlyphMapper getGlyphMapper()
getGlyphMapper
in interface FontResource
public int getSlotForFont(java.lang.String fontName)
CompositeFontResource
getSlotForFont
in interface CompositeFontResource
private void getLinkedFonts()
public int getNumSlots()
getNumSlots
in interface CompositeFontResource
public float[] getGlyphBoundingBox(int glyphCode, float size, float[] retArr)
getGlyphBoundingBox
in interface FontResource
public float getAdvance(int glyphCode, float size)
getAdvance
in interface FontResource
public FontResource getSlotResource(int slot)
getSlotResource
in interface CompositeFontResource
public FontStrike getStrike(float size, BaseTransform transform)
getStrike
in interface FontResource
public FontStrike getStrike(float size, BaseTransform transform, int aaMode)
getStrike
in interface FontResource