1.0.16 • Published 1 year ago
pdfmake-with-chinese-fonts v1.0.16
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' },`