MCPcopy Create free account
hub / github.com/fontsource/fontsource / isStaticFace

Function isStaticFace

packages/core/src/css/planner.ts:6–7  ·  view source on GitHub ↗
(face: FontFace)

Source from the content-addressed store, hash-verified

4type StaticFace = FontFace & { isVariable: false; weight: number };
5
6const isStaticFace = (face: FontFace): face is StaticFace =>
7 !face.isVariable && typeof face.weight === 'number';
8
9// Packages prefer a 400 weight normal face for `index.css`, but there are fonts
10// which do not have weight 400, or are only italic.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected