ZegoFontStyle Class Reference

Inherits from NSObject
Declared in ZegoExpressDefines.h

Overview

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.

  type

Font type. Required: False. Default value: Source han sans [ZegoFontTypeSourceHanSans]

@property (nonatomic, assign) ZegoFontType type

Declared In

ZegoExpressDefines.h

  size

Font size in px. Required: False. Default value: 24. Value range: [12,100].

@property (nonatomic, assign) int size

Declared In

ZegoExpressDefines.h

  color

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].

@property (nonatomic, assign) int color

Declared In

ZegoExpressDefines.h

  transparency

Font transparency. Required: False. Default value: 0. Value range: [0,100], 100 is completely opaque, 0 is completely transparent.

@property (nonatomic, assign) int transparency

Declared In

ZegoExpressDefines.h

  border

Whether the font has a border. Required: False. Default value: False. Value range: True/False.

@property (nonatomic, assign) BOOL border

Declared In

ZegoExpressDefines.h

  borderColor

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].

@property (nonatomic, assign) int borderColor

Declared In

ZegoExpressDefines.h