ZegoFontStyle
ZegoFontStyle
Font style.
Details
Font style configuration, can be used to configure font type, font size, font color, font transparency.
- Use cases: Set text watermark in manual stream mixing scene, such as Co-hosting.
Declared in entity/ZegoFontStyle.java
Properties
type
type
public ZegoFontType type- Required: False.
- Default value: Source han sans [ZegoFontTypeSourceHanSans]
size
size
public int size- Required: False.
- Default value: 24.
- Value range: [12,100].
color
color
public int color- Required: False.
- Default value: 16777215(white).
- Value range: [0,16777215].
transparency
transparency
public int transparency- Required: False.
- Default value: 0.
- Value range: [0,100], 100 is completely opaque, 0 is completely transparent.
border
border
public boolean border- Required: False.
- Default value: False.
- Value range: True/False.
borderColor
borderColor
public int borderColor- Required: False.
- Default value: 0.
- Value range: [0,16777215].
Methods
ZegoFontStyle
ZegoFontStyle
public ZegoFontStyleCreate a default font style object.
Declared in
entity/ZegoFontStyle.java