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 |
getFontFamily()
Deprecated.
use getFamilly().get(0) for the preferred font
|
Expression |
getFontSize()
Deprecated.
use getSize
|
Expression |
getFontStyle()
Deprecated.
Please use getStyle in 2.6.x
|
Expression |
getFontWeight()
Deprecated.
use getWeight
|
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 |
setFontFamily(Expression family)
Deprecated.
Please use getFontFamilly.set( 0, expression )
|
void |
setFontSize(Expression size)
Deprecated.
symbolizers and underneath classes will be immutable in 2.6.x
|
void |
setFontStyle(Expression style)
Deprecated.
Please use setStyle( style )
|
void |
setFontWeight(Expression weight)
Deprecated.
Please use setWeight( weight )
|
void |
setSize(Expression size) |
void |
setStyle(Expression style) |
void |
setWeight(Expression weight) |
static final int DEFAULT_FONTSIZE
Expression getFontFamily()
List<Expression> getFamily()
void setFontFamily(Expression family)
family
- Expression indicating the font fact to useExpression 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 pixelsExpression getFontStyle()
void setFontStyle(Expression style)
Expression getFontWeight()
void setFontWeight(Expression weight)
Expression getFontSize()
void setFontSize(Expression size)
Copyright © 1996–2019 Geotools. All rights reserved.