Install new fonts in Ubuntu

Source: Internet
Author: User
Original address: http://forum.ubuntu.org.cn/viewtopic.php? P = 755264
Take the font as an example (Other font fonts such as and are the same). Our font file is: yahei. TTF

1. Create a vistafonts directory under fonts, and store all the fonts copied from windows in this directory. Here, the font is put in.
Code:
Sudo mkdir-P/usr/share/fonts/vistafonts
Sudo CP yahei. TTF/usr/share/fonts/vistafonts/

Then, change the permission:
Code:
Sudo chmod 644/usr/share/fonts/vistafonts/yahei. TTF (it's okay to change it to 755, but at least 444)

Start installation:
CD/usr/share/fonts/vistafonts/
Sudo mkfontscale
Sudo mkfontdir
Sudo FC-Cache-FV

So far, the installation is complete.

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.