Follow the online post, when using Ttf2pt1.exe to convert, enter C:\ttf\ttf2pt1.exe-a-l UGBK.MAP+A1 simhei.ttf Simhei Prompt "Cannot access map file" Ugbk.map ' "
The post is the following link, please big Brother to see
Http://www.lakeice.com/?action=show&id=6
Reply to discussion (solution)
Now you don't need to convert the font format with Ttf2pt1.exe. The conversion is useless. Because Fpdf doesn't provide the ability to embed fonts
Just use the Addgbfont method to add the desired font, which is, of course, available in your system font.
Whether to use Adobe Readeer as the default browser for PDFs is not important
But you need to install Adobe Readeer may also need to install a Chinese extension pack (he will prompt you)
Now you don't need to convert the font format with Ttf2pt1.exe. The conversion is useless. Because Fpdf doesn't provide the ability to embed fonts
Just use the Addgbfont method to add the desired font, which is, of course, available in your system font.
Whether to use Adobe Readeer as the default browser for PDFs is not important
But you need to install Adobe Readeer may also need to install a Chinese extension pack (he will prompt you)
I have tried to add fonts directly using Addgbfont, but the Chinese is similar to traditional characters but not garbled
Your code is utf-8, right?
Addgbfont of course it's GBK.
You can search, as if there's a utf-8 solution.
It's so hard to learn
Do you have problems with English and numbers when your Chinese is normal? My English and digital spacing is very big, changed his $gb_widths has no effect