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