WhiteFontFace Class Reference

Inherits from WhiteObject
Declared in WhiteFontFace.h

Overview

字体配置文件,与 CSS 中的 FontFace 属性对应。

  fontFamily

字体名称,需要和 CSS 中 font-family 字段的值对应。

@property (nonatomic, strong) NSString *fontFamily

Declared In

WhiteFontFace.h

  fontStyle

字体样式,需要和 CSS 中 font-style 字段的值对应。默认值为 normal

@property (nonatomic, strong, nullable) NSString *fontStyle

Declared In

WhiteFontFace.h

  fontWeight

字体粗细,需要和 CSS 中 font-weight 字段的值对应。

@property (nonatomic, strong, nullable) NSString *fontWeight

Declared In

WhiteFontFace.h

  src

字体文件的地址,需要和 CSS 中 src 字段的值对应。

@property (nonatomic, strong) NSString *src

Declared In

WhiteFontFace.h

  unicodeRange

字体的字符编码范围,需要和 CSS 中 unicode-range 字段的值对应。

@property (nonatomic, strong, nullable) NSString *unicodeRange

Declared In

WhiteFontFace.h