Modifier and Type | Interface and Description |
---|---|
static interface |
Font.Style
Enumeration of allow font-style values.
|
static interface |
Font.Weight
Enumeration of allow font-weight values.
|
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_FONTSIZE
default font-size value *
|
Modifier and Type | Method and 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) |
static final int DEFAULT_FONTSIZE
List<Expression> getFamily()
Expression getStyle()
If null is returned the default value should be considered "normal".
void setStyle(Expression style)
style
- The "font-style" SVG parameter (one of "normal", "italic", or "oblique"Expression getWeight()
If null the default should be considered as "normal"
void setWeight(Expression weight)
weight
- The "font-weight" SVG parameter (one of "normal", "bold")Expression getSize()
Please note this is specified in pixels so you may need to take the resolution of your output into account when providing a size.
void setSize(Expression size)
size
- the font size in pixelsCopyright © 1996–2023 Geotools. All rights reserved.