Ubuntu font beautification Optimization

Source: Internet
Author: User
After beautifying and optimizing the Ubuntu font, the original default font is still used for reading emails in Traditional Chinese. Therefore, the last setting process is summarized as follows together with the traditional font settings, you don't need to find the system in the future. First download the font file, and use LiHeiPro. otf in simplified Chinese to use STHeiti. ttf in Traditional Chinese to use LucidaGrande. The Chinese characters are all in the blacklist of Mac. For copyright reasons, the download link is not provided here. Because LiHeiP

After beautifying and optimizing the Ubuntu font, the original default font is still used for reading emails in Traditional Chinese. Therefore, the last setting process is summarized as follows together with the traditional font settings, you don't need to find the system in the future.

First, download the font file. For Simplified Chinese, use STHeiti. ttf for traditional Chinese, use LiHeiPro. otf for English, and use Lucida Grande. The Chinese characters are all in the blacklist of Mac. For copyright reasons, the download link is not provided here.

Because LiHeiPro. otf is the font of Open Ture Type, rather than TTF, the system cannot be used directly. We need to convert it. Save the following content to the otf2ttf. sh file:

#! /Usr/bin/fontforge

# Quick and dirty hack: converts a font to truetype (. ttf)

Print ("Opening" + $1 );

Open ($1 );

Print ("Saving" + $1: r + ". ttf ");

Generate ($1: r + ". ttf ");

Quit (0 );

Of course, you need to ensure that the fontforge has been installed, and the path of the first line of the above script is the same as that of the actual, and add executable attributes for the script:

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.