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

Function getResolvedFamilyName

packages/core/src/css/face-rule.ts:53–54  ·  view source on GitHub ↗
(family: string, isVariable: boolean)

Source from the content-addressed store, hash-verified

51// Variable fonts get a "Variable" suffix in their family name to avoid conflicts with static faces.
52// We need it when variable fonts are included and static files are present as a fallback.
53const getResolvedFamilyName = (family: string, isVariable: boolean): string =>
54 isVariable && !family.endsWith(' Variable') ? `${family} Variable` : family;
55
56const renderDeclaration = (property: string, value: CSSValue): string => {
57 if (!Array.isArray(value)) {

Callers 1

renderFontFaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected