How to insert a Chinese freeText annotation

110 views
Skip to first unread message

廖亚伟

unread,
Jan 28, 2021, 3:06:41 PM1/28/21
to pdfium
Hello, I tried to insert a freeText annotation, but if the word is Chinese, there will be garbled characters. I guess the reason is that the default font "Helvetica" does not support Chinese. But I tried to quote the Android system font "NotoSansCJK" in "annots/0/AP/N/Resources/Font", but it is still garbled. What should I do?

Olivia Yingst

unread,
Jan 28, 2021, 3:35:45 PM1/28/21
to 廖亚伟, pdfium
Hi 廖亚伟,

Could you provide the sample code of how the Chinese characters are inserted? Information of the APIs you are using and how the font NotoSansCJK is loaded will be very helpful.

Best regards,
Olivia

On Thu, Jan 28, 2021 at 12:06 PM 廖亚伟 <mir...@gmail.com> wrote:
Hello, I tried to insert a freeText annotation, but if the word is Chinese, there will be garbled characters. I guess the reason is that the default font "Helvetica" does not support Chinese. But I tried to quote the Android system font "NotoSansCJK" in "annots/0/AP/N/Resources/Font", but it is still garbled. What should I do?

--
You received this message because you are subscribed to the Google Groups "pdfium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pdfium+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pdfium/aadef558-91af-4bfc-be86-54a4378d0551n%40googlegroups.com.


--

Olivia(Hui) Yingst | Software Engineer | huiy...@google.com | 213-399-8487
Reply all
Reply to author
Forward
0 new messages