Skip to content

@modoki/engine / index / fontFamilyFromPath

Function: fontFamilyFromPath() ​

fontFamilyFromPath(path): string

Resolve a font asset path to its CSS family name. Returns the path as-is if not a font file.

Parameters ​

path ​

string

Returns ​

string

Built with Modoki.