Class FontStack
java.lang.Object
net.sourceforge.plantuml.klimt.font.FontStack
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcanDisplayUpTo(int index, String text) booleanDeprecated.Face-aware font creation.inthashCode()toString()
-
Constructor Details
-
FontStack
-
-
Method Details
-
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
-
getFont(String, UFontFace, int)to honour intermediate CSS weights (100-900).