Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bold in Chinese font is invalid #246

Open
skyhorsewalker opened this issue Oct 27, 2023 · 1 comment
Open

Bold in Chinese font is invalid #246

skyhorsewalker opened this issue Oct 27, 2023 · 1 comment

Comments

@skyhorsewalker
Copy link

const pdf = new HummusRecipe(file, output, { fontSrcPath: path.join(__dirname, '../../assets/fonts') }) const tileStyle = { bold: true, font: 'PMingLiU', size: 11, color: '#000000' } pdf.editPage(1) .text('哈喽', 75, 145, tileStyle) .endPage()

"bold: true" it doesn't work in Chinese!!!! but it works well in English.

@julianhille
Copy link
Collaborator

What means does not work? What happens?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants