directory-fonts-complete
v1.2.0
Published
Generate a complete list of fonts and their sources from a directory
Downloads
11,808
Readme
Directory Fonts Complete
Generate a complete list of fonts and their sources from a directory.
Usage
return require('directory-fonts-complete')('/System Folder/Fonts', ['custom/font/path/on/site']);
yields
{
"Apple Braille": {
"variants": {
"400": {
"normal": {
{
"local": [
"Apple Braille",
"AppleBraille"
],
"url": {
"ttf": "/System/Library/Fonts/Apple Braille.ttf"
}
}
}
}
}
},
...
}