The OTF subsetting does reduces the PDF size remarkably. Thanks for your great work! But compared to TTF subsetting, the generated PDF is still too large... My test files are included as the attachment.
Test1 uses "Alibaba PuHuiTi 2.0", a TTF Chinese font. The Prince generated PDF is 7.5 KB.
Test2 uses "Source Han Sans SC", an OTF Chinese font. The Prince generated PDF bumps to 1.09 MB.
Test3 also uses "Source Han Sans SC". The PDF generated by XeLaTeX is 6.3 KB.
I guess there is considerable technical difficulties in OTF subsetting... For instance, Adobe Illustrator exports reasonably small PDF, but for Serif Affinity Designer, even a single character leads to MB-level size increase.
Test1 uses "Alibaba PuHuiTi 2.0", a TTF Chinese font. The Prince generated PDF is 7.5 KB.
Test2 uses "Source Han Sans SC", an OTF Chinese font. The Prince generated PDF bumps to 1.09 MB.
Test3 also uses "Source Han Sans SC". The PDF generated by XeLaTeX is 6.3 KB.
I guess there is considerable technical difficulties in OTF subsetting... For instance, Adobe Illustrator exports reasonably small PDF, but for Serif Affinity Designer, even a single character leads to MB-level size increase.