https://github.com/bytesun/pdfmake-with-chinese-fonts
pdfmake with Chinese fonts
https://github.com/bytesun/pdfmake-with-chinese-fonts
Last synced: 11 months ago
JSON representation
pdfmake with Chinese fonts
- Host: GitHub
- URL: https://github.com/bytesun/pdfmake-with-chinese-fonts
- Owner: bytesun
- License: mit
- Created: 2018-12-06T01:56:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-24T18:09:13.000Z (over 3 years ago)
- Last Synced: 2025-06-17T22:41:16.473Z (12 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/pdfmake-with-chinese-fonts
- Size: 46.2 MB
- Stars: 1
- Watchers: 0
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
pdfmake build : 0.1.39
fonts:
1. 微软雅黑
===usage===
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-Medium.ttf',
italics: 'Roboto-Italic.ttf',
bolditalics: 'Roboto-MediumItalic.ttf'
},
msyh: {
normal: 'msyh.ttf',
bold: 'msyh.ttf',
italics: 'msyh.ttf',
bolditalics: 'msyh.ttf'
}
};
defaultStyle: {font: 'msyh' },`