Skip to content

Function: setDefaultFontFaces() ​

ts
function setDefaultFontFaces(faces): void;

Experimental

Replace the files of the built-in default font (TeX Gyre Heros, shipped with Holochart) with the app's own, e.g. the same OTF files self-hosted, so no data: URL or blob: URL is involved. Faces are picked by weight and style like a registered family's (resolveFontFace), and loaded only when text needs them. null restores the shipped files. configureText calls this.

Parameters ​

ParameterType
facesFontFamilyFaces | null

Returns ​

void

Released under the MIT License.