Class FontStack
java.lang.Object
net.sourceforge.plantuml.klimt.font.FontStack
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic FontStackintcanDisplayUpTo(int index, String text) booleanDeprecated.Face-aware font creation.inthashCode()toString()
-
Field Details
-
MONOSPACE
- See Also:
-
SANS_SERIF
- See Also:
-
SERIF
- See Also:
-
-
Method Details
-
build
-
canDisplayUpTo
-
getFont
Deprecated.PrefergetFont(String, UFontFace, int)to honour intermediate CSS weights (100-900).Legacy font creation using binary bold/italic style flags. -
getFont
Face-aware font creation. Selects the first family font that can display the given text (or falls back to the primary family), resizes it, then applies both the italic axis and CSS weight viaUFontFace.deriveFont(Font).When the weight is a standard binary value (400 or 700) the result is identical to the legacy path. For intermediate weights (100-300, 500-600, 800-900) is used so that fonts with matching weight faces (e.g. Helvetica Neue) render at the requested weight.
- Parameters:
text- the string to be rendered (used for font-family fallback selection, may benull)face- the font face (weight + italic axis)size- the point size- Returns:
- a
Fontready for Java2D rendering or metric measurement
-
equals
-
hashCode
public int hashCode() -
toString
-
getFullDefinition
-
getSvgFamily
-
getFont(String, UFontFace, int)to honour intermediate CSS weights (100-900).