public class UFont extends Object
Constructor and Description |
---|
UFont(String fontFamily,
int fontStyle,
int fontSize) |
Modifier and Type | Method and Description |
---|---|
UFont |
deriveSize(float size) |
UFont |
deriveStyle(int style) |
boolean |
equals(Object obj) |
static UFont |
getCurrentFont(Graphics2D g2d)
Deprecated.
|
String |
getFamily(UFontContext context) |
Font |
getFont() |
FontMetrics |
getFontMetrics() |
LineMetrics |
getLineMetrics(Graphics2D gg,
String text) |
int |
getSize() |
double |
getSize2D() |
int |
getStyle() |
int |
hashCode() |
boolean |
isBold() |
boolean |
isItalic() |
UFont |
scaled(double scale) |
String |
toString() |
public UFont(String fontFamily, int fontStyle, int fontSize)
public final Font getFont()
public UFont scaled(double scale)
public UFont deriveSize(float size)
public UFont deriveStyle(int style)
public int getStyle()
public int getSize()
public double getSize2D()
public boolean isBold()
public boolean isItalic()
public String getFamily(UFontContext context)
@Deprecated public static UFont getCurrentFont(Graphics2D g2d)
public LineMetrics getLineMetrics(Graphics2D gg, String text)
public FontMetrics getFontMetrics()
Copyright © 2015. All Rights Reserved.