Using this Noto Sans SC OTF font with the PHP library dompdf, I see some missing glyphs. Eg, "订单" is rendered as:
The expected rendering is:
I'm afraid I can't tell if the problem is php-font-lib, dompdf, or the PDF viewer.
I also see very wide spacing for numbers and Latin glyphs:
Maybe this is a problem with the metrics from php-font-lib? It makes the font unusable, as the text may be Chinese or Latin and spacing like this makes the Latin much too wide.
After further research it seems there were a lot more problems than just the above and the cause is that OTF is not supported. Using TTF solved all the problems.
Using this Noto Sans SC OTF font with the PHP library dompdf, I see some missing glyphs. Eg, "订单" is rendered as:
The expected rendering is:
I'm afraid I can't tell if the problem is php-font-lib, dompdf, or the PDF viewer.
I also see very wide spacing for numbers and Latin glyphs:
Maybe this is a problem with the metrics from php-font-lib? It makes the font unusable, as the text may be Chinese or Latin and spacing like this makes the Latin much too wide.