Skip to content

@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 ​

PropertyTypeDescriptionDefined in
font?stringA font file in the project, such as one add_font bundled.ui/uiStyle.ts:60
family?stringA 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?numberLetter 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