iOS text font support from custom loader.

This commit is contained in:
吴尚昆
2022-03-02 17:09:26 +08:00
committed by osborn
parent 92bbe90165
commit 93e949ef41
11 changed files with 3163 additions and 1697 deletions

View File

@@ -17,6 +17,7 @@ import { View, Property } from "../ui/view"
import { Color, GradientColor } from "../util/color"
import { Gravity } from "../util/gravity"
import { layoutConfig } from "../util/layoutconfig"
import { Resource } from "../util/resource"
export enum TruncateAt {
End = 0,
@@ -45,7 +46,7 @@ export class Text extends View implements JSX.ElementChildrenAttribute {
fontStyle?: "normal" | "bold" | "italic" | "bold_italic"
@Property
font?: string
font?: string | Resource
@Property
maxWidth?: number