@Beta public interface FontFacet
Modifier and Type | Method and Description |
---|---|
default java.lang.Object |
getFontData() |
default int |
getWeight()
Get the font weight.
|
default boolean |
isItalic() |
default void |
setItalic(boolean italic)
Set the font posture
|
default void |
setWeight(int weight)
Set the font weight
|
default int getWeight()
The weight of the font in the range 0 through 1000. For example, 400 is normal and 700 is bold. If this value is zero, a default weight is used.
default void setWeight(int weight)
weight
- the font weightdefault boolean isItalic()
true
, if the font is italicdefault void setItalic(boolean italic)
italic
- true
for italic, false
for regulardefault java.lang.Object getFontData()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.