I checked a Windows 10 machine and "SimSun Regular" is 17 MB there. Is
yours smaller? You tell me.
It sounds like what you are trying to say is you only want to load the
porition of the font that's in use. e.g. the SimSun font has many
characters, but your document just says "你好" so you only need to embed
2 characters. This process is called font subsetting and it is out of
the scope of PDFium. You will need separate software to do the font
subsetting before loading the reduced font data with
FPDFText_LoadFont(). Chromium uses sfntly to do this, but may switch
to HarfBuzz in the future.
On Wed, Nov 28, 2018 at 1:08 AM Bin Yang <
actua...@gmail.com> wrote:
>
> Yes I use FPDFText_LoadFont and I load simsun font. So you mean the simsun font size is about 8M. It is indeed much big. Can I just use the font in operation system?
>
> --
> 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 post to this group, send email to
pdf...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/pdfium/fa557668-2921-46cd-9562-53b513a539c3%40googlegroups.com.