ZegoFontStyle class

字体风格。

详情描述:字体风格配置,可用于配置字体类型、字体大小、字体颜色、字体透明度。 业务场景:手动混流场景时,设置文字水印,比如多人连麦直播。

Constructors

ZegoFontStyle(ZegoFontType type, int size, int color, int transparency, bool border, int borderColor)
ZegoFontStyle.defaultStyle()
构造一个默认字体风格对象。

Properties

border ↔ bool
字体是否有边框。是否必填:否。默认值:否。取值范围:是/否。
read / write
borderColor ↔ int
字体边框颜色计算公式为为:R + G x 256 + B x 65536,R(红)、G(绿)、B(蓝)的取值范围 0,255。是否必填:否。默认值:0。取值范围:0,16777215
read / write
color ↔ int
字体颜色,计算公式为为:R + G x 256 + B x 65536,R(红)、G(绿)、B(蓝)的取值范围 0,255。是否必填:否。默认值:16777215(白色)。取值范围: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
字体大小,单位 px。是否必填:否。默认值:24。取值范围:12,100
read / write
transparency ↔ int
字体透明度。是否必填:否。默认值:0。取值范围:0,100,100 为完全不透明,0 为完全透明。
read / write
type ZegoFontType
字体类型。是否必填:否。默认值:思源黑体 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