import osFonts from 'os-fonts';
osFonts.getAll().then(fonts => {
// array of fonts...
fonts.forEach(font => {
console.log(font);
});
})
TypeError: $ is not a function
at svg (/home/kazem/WebstormProjects/x/node_modules/custom-fonts-in-emails/lib/index.js:173:14)
at async png (/home/kazem/WebstormProjects/x/node_modules/custom-fonts-in-emails/lib/index.js:240:18)
import customFonts from 'custom-fonts-in-emails';
import path from 'path';
const options = {
text: 'Make something people want',
fontNameOrPath: 'Camelina',
fontColor: 'white',
backgroundColor: '#ff6600',
fontSize: 40
};
customFonts.png2x(options)
.then(console.log)
.catch(console.error);