PHP uses Fpdf and chinese.php to display problems with Simplified Chinese

Source: Internet
Author: User
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

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.