Skip to main content

Interface: FontFace

Defined in: types.ts:93

One embeddable font face (docs/12 §1.3, FontFace in docs/schema/rasd-theme.schema.json).

src carries a reference per platform, never the bytes: web is a self-hosted WOFF2 (relative paths resolve against document.baseURI) and native is the static TTF/OTF asset name the platform registers. Variable fonts are not cross-platform on Android, so rasd theme check rejects them for native (docs/12 §13).

Properties

display?

optional display?: "swap" | "block" | "fallback" | "optional";

Defined in: types.ts:104


src

src: object;

Defined in: types.ts:97

native?

optional native?: string;

web?

optional web?: string;

style?

optional style?: "normal" | "italic";

Defined in: types.ts:96


unicodeRange?

optional unicodeRange?: string;

Defined in: types.ts:103

CSS unicode-range for this face. Arabic subsets must keep the bidi controls U+061C, U+200C–200F and U+2066–2069 (docs/13 §9), otherwise an isolate falls back to another family mid-run.


weight

weight: number;

Defined in: types.ts:95

100–900, step 100.