Create fonts already installed in the system

27 views
Skip to first unread message

吴吴

unread,
Mar 19, 2025, 2:07:21 AM3/19/25
to pdfium

I want to use Microsoft YaHei font to create text, but I don't want to use the FPDFText_LoadFont API. I am using a Windows system, what should I do?

Justin Pierce

unread,
Mar 19, 2025, 11:32:12 AM3/19/25
to 吴吴, pdfium
Can you expand on why you don't want to use that API method? 

Currently the only choices with pdfium are:

1) load one of the limited universal fonts using public API

2) load custom font from a font file, using the public API

3) find a pdf with the full font already in it

4) modify and build pdfium with the API changes you want


From: pdf...@googlegroups.com <pdf...@googlegroups.com> on behalf of 吴吴 <a1870...@gmail.com>
Sent: Wednesday, March 19, 2025 1:07:21 PM
To: pdfium <pdf...@googlegroups.com>
Subject: Create fonts already installed in the system
 

I want to use Microsoft YaHei font to create text, but I don't want to use the FPDFText_LoadFont API. I am using a Windows system, 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 visit https://groups.google.com/d/msgid/pdfium/44d52cf2-d9e9-41c6-a344-d0e596ba20d6n%40googlegroups.com.

吴吴

unread,
Mar 19, 2025, 11:25:09 PM3/19/25
to pdfium
I use FPDFText_LoadFont, but this API loads the font memory into the PDF file. If I load multiple fonts, the PDF file will be very large. I want to create a file using the registered fonts in the system, but make the PDF file smaller.
Reply all
Reply to author
Forward
0 new messages