alafr / SVG-to-PDFKit

Insert SVG into a PDF document created with PDFKit
MIT License
397 stars 111 forks source link

cannot render chinese charater to pdf #140

Closed zhyfreefly closed 3 years ago

zhyfreefly commented 3 years ago

sorry to ask this stupid question. but it has cost me a lot of time lost. I just want to know how to custom font( eg. Microsoft YaHei) to convert the svg which contains chinese characters to pdf. anyone can help me? your help would be greatly appreciated.

demo code : https://github.com/johnlindquist/svg-to-pdf ( it doesn't support chinese character)