public class UFont
extends java.lang.Object
Constructor and Description |
---|
UFont(java.lang.String fontFamily,
int fontStyle,
int fontSize) |
Modifier and Type | Method and Description |
---|---|
UFont |
bold() |
static UFont |
byDefault(int size) |
static UFont |
courier(int size) |
boolean |
equals(java.lang.Object obj) |
static UFont |
getCurrentFont(java.awt.Graphics2D g2d)
Deprecated.
|
java.lang.String |
getFamily(UFontContext context) |
java.awt.Font |
getFont() |
java.awt.FontMetrics |
getFontMetrics() |
java.awt.font.LineMetrics |
getLineMetrics(java.awt.Graphics2D gg,
java.lang.String text) |
int |
getSize() |
double |
getSize2D() |
int |
getStyle() |
UFont |
goTikz(int delta) |
int |
hashCode() |
boolean |
isBold() |
boolean |
isItalic() |
UFont |
italic() |
static UFont |
monospaced(int size) |
static UFont |
sansSerif(int size) |
UFont |
scaled(double scale) |
static UFont |
serif(int size) |
FontConfiguration |
toFont2(HtmlColor color,
boolean useUnderlineForHyperlink,
HtmlColor hyperlinkColor,
int tabSize) |
java.lang.String |
toString() |
UFont |
withSize(float size) |
UFont |
withStyle(int style) |
public static UFont serif(int size)
public static UFont sansSerif(int size)
public static UFont courier(int size)
public static UFont byDefault(int size)
public UFont goTikz(int delta)
public static UFont monospaced(int size)
public final java.awt.Font getFont()
public FontConfiguration toFont2(HtmlColor color, boolean useUnderlineForHyperlink, HtmlColor hyperlinkColor, int tabSize)
public UFont scaled(double scale)
public UFont withSize(float size)
public UFont withStyle(int style)
public UFont bold()
public UFont italic()
public int getStyle()
public int getSize()
public double getSize2D()
public boolean isBold()
public boolean isItalic()
public java.lang.String getFamily(UFontContext context)
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
@Deprecated public static UFont getCurrentFont(java.awt.Graphics2D g2d)
public java.awt.font.LineMetrics getLineMetrics(java.awt.Graphics2D gg, java.lang.String text)
public java.awt.FontMetrics getFontMetrics()