Skip to content

Function: parseFontFamilyList() ​

ts
function parseFontFamilyList(family): string[];

Experimental

Split a CSS font family list into unquoted names, e.g. '"Open Sans", arial' → ['Open Sans', 'arial']. Commas inside quoted names are not supported (none of the common font names contain them).

Parameters ​

ParameterType
familystring

Returns ​

string[]

Released under the MIT License.