中文乱码,如何解决?
Cong-Lee opened this issue · comments
XiaoCongGe commented
转换之后,中文乱码,如何解决?
Luke, JunYuan Yan commented
請參考 jyyan@77e6aaa
- 利用 pdfmake 重新打包新的字型
- 需要選用 TTF 格式的字型相容性比較好,測試多款 OTF 格式都會有缺字狀況
- 將 pdfmake 打包後的 vfs_fonts.js 替換至 src 資料夾中
- yarn build 重新打包編譯 RapiPdf 或直接在 yarn serve 執行測試
Luke, JunYuan Yan commented
Duplicate of #50
syksy-map commented
@Cong-Lee 基于rapiPdf做了个在线工具,内置了仿宋字体。不仅支持URL,还支持粘贴JSON文本,甚至直接上传JSON文件。https://swagger-fly.com/