@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.
(获取字体粗细。字体的粗细范围为 0 到 1000。例如,400 是正常的,700 是粗体。如果此值为零,则使用默认权重。)default void setWeight(int weight)
weight
- the font weight
(weight - 字体粗细)
default boolean isItalic()
true
, if the font is italic
(true,如果字体是斜体)
default void setItalic(boolean italic)
italic
-
true
for italic,
false
for regular
(斜体 - 斜体为真,常规为假)
default java.lang.Object getFontData()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.