Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Get font list in specified directory(default system fonts).
This project respect font-manager.
cf.
is native | accuracy | Custom directory | |
---|---|---|---|
fontscan | No. Only node.js | Maybe not accurate | Yes. Not only installed font |
font-manager | Yes. Made with C language | Maybe accurate | No. Only installed font |
Get system fonts.
const fontscan = require('fontscan');
console.log(await fontscan.getFontList());
// output
[
FontDescriptor {
path: 'C:\\Windows\\Fonts\\AGENCYB.TTF',
postscriptName: 'AgencyFB-Bold',
family: 'Agency FB',
monospace: false,
width: 3,
weight: 700,
italic: false,
style: 'Bold'
},
FontDescriptor {
path: 'C:\\Windows\\Fonts\\AGENCYR.TTF',
postscriptName: 'AgencyFB-Reg',
family: 'Agency FB',
monospace: false,
width: 3,
weight: 400,
italic: false,
style: 'Regular'
},
... more items ]
Fonts in specified directory.
Note: We recommend that you do not specify the root directory, as custom directories are searched recursively.
await fontscan.getFontList({
customDirectories: [
`C:\\Users\\${username}\\Fonts`,
`D:\\Fonts`
],
onlyCustomDirectories: true
})
fontscan.getFontList(options?): Promise<FontDescriptor[]>
options
customDirectories
string[]
onlyCustomDirectories
boolean
FontDescriptor
Font descriptor has basic font informations.
path: string;
family: string;
postscriptName: string;
width: number;
weight: number;
style: string;
italic: boolean;
monospace: boolean;
FAQs
Get font list in specified directory(default system fonts).
The npm package fontscan receives a total of 0 weekly downloads. As such, fontscan popularity was classified as not popular.
We found that fontscan demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.