Package org.geotools.styling
Interface Font
-
- All Superinterfaces:
Font
- All Known Implementing Classes:
FontImpl
public interface Font extends Font
A system-independent object for holding SLD font information. This holds information on the text font to use in text processing. Font-family, font-style, font-weight and font-size.- Author:
- Ian Turton, CCG
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Font.Style
Enumeration of allow font-style values.static interface
Font.Weight
Enumeration of allow font-weight values.
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_FONTSIZE
default font-size value *
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Expression>
getFamily()
SVG font-family parameters in preferred order.Expression
getSize()
Font size in pixels with a default of 10 pixels.Expression
getStyle()
The "font-style" SVG parameter should be "normal", "italic", or "oblique".Expression
getWeight()
The "font-weight" SVG parameter should be "normal" or "bold".void
setSize(Expression size)
void
setStyle(Expression style)
void
setWeight(Expression weight)
-
-
-
Field Detail
-
DEFAULT_FONTSIZE
static final int DEFAULT_FONTSIZE
default font-size value *- See Also:
- Constant Field Values
-
-
Method Detail
-
getFamily
List<Expression> getFamily()
SVG font-family parameters in preferred order.
-
getStyle
Expression getStyle()
The "font-style" SVG parameter should be "normal", "italic", or "oblique".If null is returned the default value should be considered "normal".
-
setStyle
void setStyle(Expression style)
- Parameters:
style
- The "font-style" SVG parameter (one of "normal", "italic", or "oblique"
-
getWeight
Expression getWeight()
The "font-weight" SVG parameter should be "normal" or "bold".If null the default should be considered as "normal"
-
setWeight
void setWeight(Expression weight)
- Parameters:
weight
- The "font-weight" SVG parameter (one of "normal", "bold")
-
getSize
Expression getSize()
Font size in pixels with a default of 10 pixels.Please note this is specified in pixels so you may need to take the resolution of your output into account when providing a size.
-
setSize
void setSize(Expression size)
- Parameters:
size
- the font size in pixels
-
-