2013年8月3日星期六

By Windows and Linux to Linux migration monospace font

 

1. From Windows

 

Windows font library location is under C: \ Windows \ fonts, which contains all the windows of the available fonts.
2. To Linux linux font library is / usr / share / Fonts.

 

in that directory create a directory, such as directory called windows (based on personal preferences, his own understanding on the line, of course, here there is a permissions required, you can use sudo to execute).

 

then windows font library font file you want to copy to the newly created directory (only need to copy the *. ttc, and *. ttf file).

 

copy all font: sudo cp *. ttc / usr / share / fonts / windows /
sudo cp *. ttf / usr / share / fonts / windows /
change the font library privileges: ; sudo chmod 755 / usr / share / fonts / windows / *

 

then enter linux font library: cd / usr / share / fonts / windows /

 

then according to the current directory of the font file to establish scale sudo mkfontscale < br /> Then create a dir file sudo mkfontdir
then run sudo fc-cache

 

restart the Linux operating system, you can use these fonts.

 

 

3. Skills

 

use of rich fonts can complete some special features as possible to avoid the application of complexity.

 

standard graphic symbol font such as a small picture, the same function can be used instead of the icon.

 

such as telephone functions, uploading, message function and so on, has a corresponding icon, a letter can be simply expressed.

 

--------------------------

 

monospaced programming font Monaco

   

  

 
  

writing process when the code font is very important, it is best monospaced fonts, especially for python like indent directly affect the language syntax. Monospaced font looks relatively clear structure, in addition to easy to distinguish, for example, the letter o and the number 0, the letter l and the number 1 and so on. There are many default monospaced font, today saw a great programming font and recommend it to friends. Monaco is the font on the Mac Monaco, great, smooth and delicate. Here is my geany using this font to write a short php code screenshot.

  

  

installation is very simple, http://www.gringod.com/wp-upload/MONACO.TTF downloaded, then put it in your directory. fonts directory, run fc-cache-f-v refresh font, in editor and software to use. I put firefox tune into the font, English is very good-looking, and clearly, the program even more so.

 

没有评论:

发表评论