import pdfMake from "pdfmake-with-chinese-fonts/pdfmake";
import pdfFonts from "pdfmake-with-chinese-fonts/vfs_fonts";
pdfMake.vfs = pdfFonts.pdfMake.vfs;
pdfMake.fonts = {
Roboto: {
normal: 'Roboto-Regular.ttf',
bold: 'Roboto-Bold.ttf',
italics: 'Roboto-Italic.ttf',
black: 'Roboto-Black.ttf'
},
whzming: {
normal: 'whz-ming-regular.ttf',
bold: 'whz-ming-bold.ttf',
},
simsun: {
normal: 'SimSun-Regular.ttf',
bold: 'SimSun-Bold.ttf',
},
};
defaultStyle: {font: 'Roboto' },`
pdfmake-with-chinese-fonts
1.0.16 • Public • PublishedPackage Sidebar
Install
npm i pdfmake-with-chinese-fonts
Weekly Downloads
2
Version
1.0.16
License
MIT
Unpacked Size
67.4 MB
Total Files
8