Agora Interactive Whiteboard Java API Reference
Public Member Functions | List of all members
com.herewhite.sdk.domain.FontFace Class Reference
Inheritance diagram for com.herewhite.sdk.domain.FontFace:
com.herewhite.sdk.domain.WhiteObject

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 ()
 

Detailed Description

Font file configurations. This class is similar to the @font-face attribute in CSS.

Since
2.11.2

Constructor & Destructor Documentation

◆ FontFace()

com.herewhite.sdk.domain.FontFace.FontFace ( String  name,
String  src 
)
Parameters
nameThe font name. This parameter is equivalent to the font-family field in CSS.
srcThe 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").

Member Function Documentation

◆ getFontStyle()

String com.herewhite.sdk.domain.FontFace.getFontStyle ( )

Gets the font style.

Returns
The font style.

◆ setFontStyle()

void com.herewhite.sdk.domain.FontFace.setFontStyle ( String  fontStyle)

Sets the font style.

Parameters
fontStyleThe font style. This parameter is equivalent to the font-style field in CSS, and can be set to:
  • normal:(Default) Normal.
  • italic:Italic.

◆ getFontWeight()

String com.herewhite.sdk.domain.FontFace.getFontWeight ( )

Gets the font weight.

Returns
The font weight.

◆ setFontWeight()

void com.herewhite.sdk.domain.FontFace.setFontWeight ( String  fontWeight)

Sets the font weight.

Parameters
fontWeightThe font weight. This parameter is equivalent to the font-weight field in CSS.

◆ getUnicodeRange()

String com.herewhite.sdk.domain.FontFace.getUnicodeRange ( )

Gets the range of Unicode code points to be used by the font.

Returns
The range of Unicode code points to be used by the font.

◆ setUnicodeRange()

void com.herewhite.sdk.domain.FontFace.setUnicodeRange ( String  unicodeRange)

Sets the range of Unicode code points to be used by the font.

Parameters
unicodeRangeThe range of Unicode code points to be used by the font. This parameter is equivalent to the unicode-range field in CSS.