xitanggg / open-resume

OpenResume is a powerful open-source resume builder and resume parser. https://open-resume.com/

Home Page:https://open-resume.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[feature request] add chinese language support for builder?

dabuside opened this issue · comments

commented

I create a pr for this, please take a look and give some advice.

Hi there, thanks for creating this issue. React PDF would only display the font correctly if the corresponding font family is registered for it to use. Previously, Chinese font wasn't added and registered, hence the PDF output was garbled code.

I just merged #40 and this PR adds the 思源黑体 (简体) font. If user has zh language in their browser's navigator.languages property, user would see 思源黑体 (简体) listed as one of the font option in the font family section
https://user-images.githubusercontent.com/23644661/257455861-174687a1-808c-4e74-8c86-23819c949ab3.gif

Recording 2023-08-01 at 1 35 27 AM

More context can be found in this thread: #36 (comment)