Differences between font path Windows and Linux

Source: Internet
Author: User
About differences between the font path Windows and Linux, read about differences between the font path Windows and Linux, ImageTTFText ($ im, 16, 0, 70, 30, $ blue, "> <LINKhref =" http://www.php100.com//statics/style/headfloor_950_081205.css "ty

ImageTTFText ($ im, 16, 0, 70, 30, $ blue, "./simkai. ttf", $ char );

This function is a text path because the paths in Windows and Linux are different.

So, you can copy the font file to the current directory of the program file.

For example, simkai is used in Windows. the simsun font is in Windows. you can enter her absolute address in windows/font/simkai. ttf cannot be used in Linux, and all copies to the current program directory should be case-sensitive in Linux.

Get the absolute path through $ _ SERVER.

ImageTTFText ($ im, 16, 0, 70, 30, $ blue, "$ path/simkai. ttf", $ char );

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.