markdown-pdf
markdown-pdf copied to clipboard
CJK fonts support to pdf
The output only contains number and alphabetic, Chinese, Japanese, Korean characters missed
My md file is utf-8 encoding.
I'm late to help you out, but just fixed loading a custom font using only stylesheets like this:
/* pdfstyle.css */
@import url('https://fonts.googleapis.com/css?family=Pontano+Sans');
html {
font-family: 'Pontano Sans';
}
and
markdownpdf({
cssPath: __dirname + '/pdfstyle.css',
paperBorder: '1cm',
...
})...