|
Agora Interactive Whiteboard Java API Reference
|
Public Member Functions | |
| FontFace (String name, String src) | |
| String | getFontStyle () |
| void | setFontStyle (String fontStyle) |
| String | getFontWeight () |
| void | setFontWeight (String fontWeight) |
| String | getUnicodeRange () |
| void | setUnicodeRange (String unicodeRange) |
Public Member Functions inherited from com.herewhite.sdk.domain.WhiteObject | |
| String | toString () |
| JSONObject | toJSON () |
Font file configurations. This class is similar to the @font-face attribute in CSS.
| com.herewhite.sdk.domain.FontFace.FontFace | ( | String | name, |
| String | src | ||
| ) |
| name | The font name. This parameter is equivalent to the font-family field in CSS. |
| src | The path to the font file. This parameter is equivalent to the src field in CSS. The supported format is url(), where you can fill in the URL to a remote font file location, for example, url("https://white-pan.oss-cn-shanghai.aliyuncs.com/Pacifico-Regular.ttf"). |
| String com.herewhite.sdk.domain.FontFace.getFontStyle | ( | ) |
Gets the font style.
| void com.herewhite.sdk.domain.FontFace.setFontStyle | ( | String | fontStyle | ) |
Sets the font style.
| fontStyle | The font style. This parameter is equivalent to the font-style field in CSS, and can be set to:
|
| String com.herewhite.sdk.domain.FontFace.getFontWeight | ( | ) |
Gets the font weight.
| void com.herewhite.sdk.domain.FontFace.setFontWeight | ( | String | fontWeight | ) |
Sets the font weight.
| fontWeight | The font weight. This parameter is equivalent to the font-weight field in CSS. |
| String com.herewhite.sdk.domain.FontFace.getUnicodeRange | ( | ) |
Gets the range of Unicode code points to be used by the font.
| void com.herewhite.sdk.domain.FontFace.setUnicodeRange | ( | String | unicodeRange | ) |
Sets the range of Unicode code points to be used by the font.
| unicodeRange | The range of Unicode code points to be used by the font. This parameter is equivalent to the unicode-range field in CSS. |