class PrismCompositeFontResource extends java.lang.Object implements CompositeFontResource
Modifier and Type | Field and Description |
---|---|
private FallbackResource |
fallbackResource |
(package private) CompositeGlyphMapper |
mapper |
private FontResource |
primaryResource |
(package private) java.util.Map<FontStrikeDesc,java.lang.ref.WeakReference<FontStrike>> |
strikeMap |
Constructor and Description |
---|
PrismCompositeFontResource(FontResource primaryResource,
java.lang.String lookupName) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
float |
getAdvance(int glyphCode,
float size) |
int |
getDefaultAAMode() |
java.lang.String |
getFamilyName() |
int |
getFeatures() |
java.lang.String |
getFileName() |
java.lang.String |
getFullName() |
float[] |
getGlyphBoundingBox(int glyphCode,
float size,
float[] retArr) |
CharToGlyphMapper |
getGlyphMapper() |
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() |
int |
hashCode() |
boolean |
isBold() |
boolean |
isEmbeddedFont() |
boolean |
isItalic() |
void |
setPeer(java.lang.Object peer) |
private FontResource primaryResource
private FallbackResource fallbackResource
CompositeGlyphMapper mapper
java.util.Map<FontStrikeDesc,java.lang.ref.WeakReference<FontStrike>> strikeMap
PrismCompositeFontResource(FontResource primaryResource, java.lang.String lookupName)
public int getNumSlots()
getNumSlots
in interface CompositeFontResource
public int getSlotForFont(java.lang.String fontName)
CompositeFontResource
getSlotForFont
in interface CompositeFontResource
public FontResource getSlotResource(int slot)
getSlotResource
in interface CompositeFontResource
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 java.lang.String getFileName()
getFileName
in interface FontResource
public int getFeatures()
getFeatures
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 boolean isBold()
isBold
in interface FontResource
public boolean isItalic()
isItalic
in interface FontResource
public CharToGlyphMapper getGlyphMapper()
getGlyphMapper
in interface FontResource
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 java.util.Map<FontStrikeDesc,java.lang.ref.WeakReference<FontStrike>> getStrikeMap()
getStrikeMap
in interface FontResource
public int getDefaultAAMode()
getDefaultAAMode
in interface FontResource
public FontStrike getStrike(float size, BaseTransform transform)
getStrike
in interface FontResource
public FontStrike getStrike(float size, BaseTransform transform, int aaMode)
getStrike
in interface FontResource
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object