Infers the font format from a font file extension. Supported extensions include: eot, woff2, woff, ttf, otf, svg.
eot
woff2
woff
ttf
otf
svg
The path of the font file.
The font format. Defaults to opentype if unable to infer.
opentype
Infers the font format from a font file extension. Supported extensions include:
eot
,woff2
,woff
,ttf
,otf
,svg
.