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

中文乱码,如何解决? #78

Open
Cong-Lee opened this issue Jan 21, 2021 · 3 comments
Open

中文乱码,如何解决? #78

Cong-Lee opened this issue Jan 21, 2021 · 3 comments

Comments

@Cong-Lee
Copy link

转换之后,中文乱码,如何解决?

@jyyan
Copy link

jyyan commented Jul 17, 2021

請參考 jyyan@77e6aaa

  1. 利用 pdfmake 重新打包新的字型
  2. 需要選用 TTF 格式的字型相容性比較好,測試多款 OTF 格式都會有缺字狀況
  3. 將 pdfmake 打包後的 vfs_fonts.js 替換至 src 資料夾中
  4. yarn build 重新打包編譯 RapiPdf 或直接在 yarn serve 執行測試

補充:Sample RapiPdf release

@jyyan
Copy link

jyyan commented Jul 18, 2021

Duplicate of #50

@syksy-map
Copy link

@Cong-Lee 基于rapiPdf做了个在线工具,内置了仿宋字体。不仅支持URL,还支持粘贴JSON文本,甚至直接上传JSON文件。https://swagger-fly.com/

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

3 participants