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

@@ -1,6 +1,7 @@
import { View } from "../ui/view";
import { Color, GradientColor } from "../util/color";
import { Gravity } from "../util/gravity";
import { Resource } from "../util/resource";
export declare enum TruncateAt {
End = 0,
Middle = 1,
@@ -14,7 +15,7 @@ export declare class Text extends View implements JSX.ElementChildrenAttribute {
maxLines?: number;
textAlignment?: Gravity;
fontStyle?: "normal" | "bold" | "italic" | "bold_italic";
font?: string;
font?: string | Resource;
maxWidth?: number;
maxHeight?: number;
lineSpacing?: number;

View File

@@ -63,7 +63,7 @@ __decorate([
], Text.prototype, "fontStyle", void 0);
__decorate([
Property,
__metadata("design:type", String)
__metadata("design:type", Object)
], Text.prototype, "font", void 0);
__decorate([
Property,