public class LogicalFont extends Object implements CompositeFontResource
Modifier and Type | Field and Description |
---|---|
static String |
MONOSPACED |
static String |
SANS_SERIF |
static String |
SERIF |
static String |
STYLE_BOLD |
static String |
STYLE_BOLD_ITALIC |
static String |
STYLE_ITALIC |
static String |
STYLE_REGULAR |
static String |
SYSTEM |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
float |
getAdvance(int glyphCode,
float size) |
int |
getDefaultAAMode() |
String |
getFamilyName() |
int |
getFeatures() |
String |
getFileName() |
String |
getFullName() |
float[] |
getGlyphBoundingBox(int glyphCode,
float size,
float[] retArr) |
CharToGlyphMapper |
getGlyphMapper() |
String |
getLocaleFamilyName() |
String |
getLocaleFullName() |
String |
getLocaleStyleName() |
int |
getNumSlots() |
Object |
getPeer() |
String |
getPSName() |
int |
getSlotForFont(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) |
Map<FontStrikeDesc,WeakReference<FontStrike>> |
getStrikeMap() |
String |
getStyleName() |
int |
hashCode() |
boolean |
isBold() |
boolean |
isEmbeddedFont() |
boolean |
isItalic() |
void |
setPeer(Object peer) |
public static final String SYSTEM
public static final String SERIF
public static final String SANS_SERIF
public static final String MONOSPACED
public static final String STYLE_REGULAR
public static final String STYLE_BOLD
public static final String STYLE_ITALIC
public static final String STYLE_BOLD_ITALIC
public int getNumSlots()
getNumSlots
in interface CompositeFontResource
public int getSlotForFont(String fontName)
CompositeFontResource
getSlotForFont
in interface CompositeFontResource
public FontResource getSlotResource(int slot)
getSlotResource
in interface CompositeFontResource
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 boolean isBold()
isBold
in interface FontResource
public boolean isItalic()
isItalic
in interface FontResource
public String getFileName()
getFileName
in interface FontResource
public int getFeatures()
getFeatures
in interface FontResource
public Object getPeer()
getPeer
in interface FontResource
public boolean isEmbeddedFont()
isEmbeddedFont
in interface FontResource
public void setPeer(Object peer)
setPeer
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 CharToGlyphMapper getGlyphMapper()
getGlyphMapper
in interface FontResource
public Map<FontStrikeDesc,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
Copyright © 2020. All rights reserved.