Class FontSpecification
- java.lang.Object
-
- org.jfree.layouting.layouter.context.FontSpecification
-
public class FontSpecification extends java.lang.Object
Creation-Date: 15.12.2005, 11:44:22- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description FontSpecification(LayoutStyle style)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFontFamily()
double
getFontSize()
The requested font size.int
getFontWeight()
boolean
isAntiAliasing()
boolean
isItalic()
boolean
isOblique()
boolean
isSmallCaps()
void
setFontFamily(java.lang.String fontFamily)
Redefines the physical font family.void
setFontSize(double fontSize)
The font size is resolved once during the resolve cycle.
-
-
-
Constructor Detail
-
FontSpecification
public FontSpecification(LayoutStyle style)
-
-
Method Detail
-
getFontSize
public double getFontSize()
The requested font size. A font may have a fractional font size (ie. 8.5 point). The font size may be influenced by the output target. This font size is given in point.- Returns:
- the font size.
-
setFontSize
public void setFontSize(double fontSize)
The font size is resolved once during the resolve cycle. It is more than just looking up the value in the stylesheet, as we have to take the font size adjustment into account. This font size is given in micro-point.- Parameters:
fontSize
- the font size as used during the rendering.
-
getFontFamily
public java.lang.String getFontFamily()
-
setFontFamily
public void setFontFamily(java.lang.String fontFamily)
Redefines the physical font family. The resolving is done once during the style resolve run, logical fonts get mapped into their physical counterparts.- Parameters:
fontFamily
-
-
getFontWeight
public int getFontWeight()
-
isItalic
public boolean isItalic()
-
isOblique
public boolean isOblique()
-
isSmallCaps
public boolean isSmallCaps()
-
isAntiAliasing
public boolean isAntiAliasing()
-
-