@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / UiTextStyle
Type Alias: UiTextStyle ​
ts
type UiTextStyle = {
font?: string;
family?: string;
weight?: number;
tracking?: number;
transform?: "upper" | "lower";
paint?: UiPaint;
maxLines?: number;
shadow?: UiShadow;
};Defined in: ui/uiStyle.ts:58
Properties ​
| Property | Type | Description | Defined in |
|---|---|---|---|
font? | string | A font file in the project, such as one add_font bundled. | ui/uiStyle.ts:60 |
family? | string | A font with no file: sans, serif, mono, rounded, condensed, or any CSS family list. Used until font loads, and when it is absent. | ui/uiStyle.ts:65 |
weight? | number | - | ui/uiStyle.ts:66 |
tracking? | number | Letter spacing in metres. | ui/uiStyle.ts:68 |
transform? | "upper" | "lower" | - | ui/uiStyle.ts:69 |
paint? | UiPaint | - | ui/uiStyle.ts:70 |
maxLines? | number | - | ui/uiStyle.ts:71 |
shadow? | UiShadow | - | ui/uiStyle.ts:72 |

