pdf_translator
pdf_translator copied to clipboard
cannot show zh-cn correctly
seems the problem is that the font does not support all the characters. you could try replacing the font with one that supports CN
可以在window环境中部署嘛?
Add a Chinese-supporting font to the fonts
directory in the root of the project by downloading a ttf format font. In modules/font/simple.py
, you can simply change the last line that reads 'TimesNewRoman' to the name of the font you added.
fonts
├── FZHTK.ttf
├── FreeMono.ttf
└── TimesNewRoman.ttf
return 'FZHTK.ttf', font_size, ygain