Ubuntu Install Courier new font and YA-black consolas font

Source: Internet
Author: User

Always feel that the font under Ubuntu is not very good, but after all does not affect the use, and then for the development of the eclipse of the font completely without Windows, the two most suitable fonts Courier New and Consloas. You can use the system to install fonts, and then use the system fonts under Eclipse.

1. Install Courier New

sudo apt-get install Ttf-mscorefonts-installer

In the interface that appears, press the TAB key to select OK, and then enter. At the beginning of the installation of forced shutdown, again install the error prompt, because the default system can only open an installation process, can PS process and then kill Apt-get pid ... The quick command is Ps-aux|grep apt-get and then kill.

So it's ready for installation. In System settings text input--Using custom fonts-->courier New



2, install ya black-consloas font

Consolas is a type of font specifically designed for programmers, which is characterized by the fact that all letters, numbers and symbols can be easily recognizable, and all characters have the same width, making it more comfortable for the programmer to look at. However, we use Consolas in the display of the program source code, it is unavoidable to use Chinese annotation. Consolas does not support Chinese, so the Chinese default is to use the Arial display. When using 10-point size, Chinese is blurred. If the annotation is displayed in italics, the song body becomes more fragmented.

In the Chinese display, ya black font is really good, but ya black is not equal width font, can not be used for source code display.

With the use of font tools to integrate Jache and Consolas, programmers can see the excellent Chinese display in the source code in the Linux environment.

Specific options:

First download ya black-consolas mixed font package, resource address:

http://download.csdn.net/detail/emycslife/4240737

Assuming the download to the ~/download/directory, we first unzip the compressed package here, the extracted font TTF file to any directory in/usr/share/fonts/(I was tested under Ubuntu 11.10):

sudo mkdir-p/usr/share/fonts/vista
sudo cp yahei.consolas.1.12.ttf/usr/share/fonts/vista/

To change permissions:

sudo chmod 644/usr/share/fonts/vista/*.ttf

Install fonts:

cd/usr/share/fonts/vista/
sudo mkfontscale
sudo mkfontdir
sudo fc-cache-fv

Then we can use the newly installed JAS-consolas to mix fonts.





Ubuntu Install Courier new font and YA-black consolas font

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.