Currently, the font is fixed, and it seems that you cannot specify the font you bring in. If you try to enter Chinese (even Korean) as it is, the characters will be garbled in the PDF state.
[Korean or Chinese text cannot be displayed in PDF] 1
For Rails, create an initializer as shown here.
Thinreports.configure do |config| config.fallback_fonts << Rails.root.join("app/thinreports/NotoSansCJKsc-Regular.ttf").to_s end
The important thing here is the ttf font, and you need to use the
(□ The display is called TOFU in English-speaking countries, and the tofu display is already tired --no more tofu --NOTO [likely] 3, and then [tofulearn.com] 2)
At first, it's "CJK", so you can display all Chinese Japanese Korean with one font file, right? I thought, but apparently not. Since the NotoCJK file downloaded properly was a Japanese version, it could not be displayed in Chinese (the part marked with □ was blank in PDF).
If you look closely, it seems that CJK also has [font version for each region] 4.
The first file I used was
NotoSansCJKjp-Regular.ttf if you look closely. So, I searched for
NotoSansCJKsc-Regular.ttf and guessed it, and it was perfect.