ZegoFontStyle class

Font style.

Description: 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.

Constructors

ZegoFontStyle(ZegoFontType type, int size, int color, int transparency, bool border, int borderColor)
ZegoFontStyle.defaultStyle()
Create a default font style object.

Properties

border ↔ bool
Whether the font has a border. Required: False. Default value: False. Value range: True/False.
read / write
borderColor ↔ int
Font border color, the calculation formula is: R + G x 256 + B x 65536, the value range of R (red), G (green), and B (blue) 0,255. Required: False. Default value: 0. Value range: 0,16777215.
read / write
color ↔ int
Font color, the calculation formula is: R + G x 256 + B x 65536, the value range of R (red), G (green), and B (blue) 0,255. Required: False. Default value: 16777215(white). Value range: 0,16777215.
read / write
hashCode → int
The hash code for this object.
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
size ↔ int
Font size in px. Required: False. Default value: 24. Value range: 12,100.
read / write
transparency ↔ int
Font transparency. Required: False. Default value: 0. Value range: 0,100, 100 is completely opaque, 0 is completely transparent.
read / write
type ZegoFontType
Font type. Required: False. Default value: Source han sans ZegoFontTypeSourceHanSans
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited