Ubuntu Font Installation

Source: Internet
Author: User

Command Installation:

In the case of Microsoft Ya-Black font (the other font is the same as the Arial, blackbody, etc.), our JAS-Black font file is: Yahei.ttf (placed in its own home directory) (in the Widows directory of the fonts directory to find the desired font)
Since I am a dual system, I copied the Msyh.ttf and Msyhbd.ttf directly from the Win7 to Ubuntu


1 Create a new folder under/usr/share/fonts/such as: Winfonts directory, ready to copy the fonts from the windows are placed in this directory, this is to put ya black font yahei.ttf in
sudo mkdir-p/usr/share/fonts/winfonts
2 then copy the font file to this folder
sudo cp/home/username (user name)/fonts/yahei.ttf/usr/share/fonts/winfonts/
3 Then, change the permissions:
sudo chmod 644/usr/share/fonts/winfonts/yahei.ttf(change to 755 is no problem, but at least 444, modify the JAS Black font file permissions of 644, that is, the current user read and write, the current group of users read-only, other users read only)
4 Start the installation:
cd/usr/share/fonts/winfonts/
sudo mkfontscale (creates an fonts.scale file for ya-black fonts, which controls font rotation scaling)
sudo mkfontdir (creates a fonts.dir file of the JAS-black font, which is used to control the font in bold Italic generation)
sudo fc-cache-fv (create font cache information, that is, make the system aware of Jache)
5. Sudo gedit/etc/fonts/language-selector.conf (optional)
(Opens language selection settings file)
Found separately
Bitstream Vera Serif
Bitstream Vera Sans
Bitstream Vera Sans Mono
Add separately
Microsoft Yahei
6, in the menu system-preferences-font can find "Microsoft ya Black" You can also install fonts in batches . Create a Font Fonts folder in the home directory. (all fonts placed in them)
sudo mkdir-p/usr/share/fonts/winfonts
sudo cp/home/zengq/fonts/*/usr/share/fonts/winfonts/
Then, change the permissions:
Code:
sudo chmod 644/usr/share/fonts/winfonts/*
To start the installation:
cd/usr/share/fonts/winfonts/
sudo mkfontscale
sudo mkfontdir
sudo fc-cache-fv Fontmtraix Install fonts: Fontmatrix Software:Http://dl.getdropbox.com/u/378247/Software/Ubuntu/fontmatrix_0.4.2-2_i386.debor through the new, Ubuntu Software Center installation Open Fontmatrix, Software is English to, we need to use two operations1:file = Import = Select the Font folder and select the font to install = = OK2:edit = Active All current = OK Delete Font Delete the font, delete the Winfonts folder directly, and then sudo fc-cache-fv

Ubuntu Font Installation

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.