Font.Style, Font.Weight
DEFAULT_FONTSIZE
Modifier | Constructor and Description |
---|---|
protected |
FontImpl()
Creates a new instance of DefaultFont
|
Modifier and Type | Method and Description |
---|---|
Object |
accept(StyleVisitor visitor,
Object data)
calls the visit method of a StyleVisitor
|
Object |
clone()
Creates a clone of the font.
|
boolean |
equals(Object oth)
Compares this font with another for equality.
|
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".
|
int |
hashCode()
Generates the hashcode for the font.
|
void |
setSize(Expression size) |
void |
setStyle(Expression style) |
void |
setWeight(Expression weight) |
public List<Expression> getFamily()
Font
public Expression getSize()
Font
Please note this is specified in pixels so you may need to take the resolution of your output into account when providing a size.
public void setSize(Expression size)
size
- the font size in pixelspublic Expression getStyle()
Font
If null is returned the default value should be considered "normal".
public void setStyle(Expression style)
style
- The "font-style" SVG parameter (one of "normal", "italic", or "oblique"public Expression getWeight()
Font
If null the default should be considered as "normal"
public void setWeight(Expression weight)
weight
- The "font-weight" SVG parameter (one of "normal", "bold")public Object clone()
clone
in class Object
Cloneable.clone()
public int hashCode()
public boolean equals(Object oth)
Copyright © 1996–2022 Geotools. All rights reserved.