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 CompositeFontResourcepublic int getSlotForFont(String fontName)
CompositeFontResourcegetSlotForFont in interface CompositeFontResourcepublic FontResource getSlotResource(int slot)
getSlotResource in interface CompositeFontResourcepublic String getFullName()
getFullName in interface FontResourcepublic String getPSName()
getPSName in interface FontResourcepublic String getFamilyName()
getFamilyName in interface FontResourcepublic String getStyleName()
getStyleName in interface FontResourcepublic String getLocaleFullName()
getLocaleFullName in interface FontResourcepublic String getLocaleFamilyName()
getLocaleFamilyName in interface FontResourcepublic String getLocaleStyleName()
getLocaleStyleName in interface FontResourcepublic boolean isBold()
isBold in interface FontResourcepublic boolean isItalic()
isItalic in interface FontResourcepublic String getFileName()
getFileName in interface FontResourcepublic int getFeatures()
getFeatures in interface FontResourcepublic Object getPeer()
getPeer in interface FontResourcepublic boolean isEmbeddedFont()
isEmbeddedFont in interface FontResourcepublic void setPeer(Object peer)
setPeer in interface FontResourcepublic float[] getGlyphBoundingBox(int glyphCode,
float size,
float[] retArr)
getGlyphBoundingBox in interface FontResourcepublic float getAdvance(int glyphCode,
float size)
getAdvance in interface FontResourcepublic CharToGlyphMapper getGlyphMapper()
getGlyphMapper in interface FontResourcepublic Map<FontStrikeDesc,WeakReference<FontStrike>> getStrikeMap()
getStrikeMap in interface FontResourcepublic int getDefaultAAMode()
getDefaultAAMode in interface FontResourcepublic FontStrike getStrike(float size, BaseTransform transform)
getStrike in interface FontResourcepublic FontStrike getStrike(float size, BaseTransform transform, int aaMode)
getStrike in interface FontResourceCopyright © 2025. All rights reserved.