Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Linux Getting Started tutorial: Borrow Windows fonts in Ubuntu 14.10     - Node.js development environment deployment (Server)

- Debian GNU / Linux service list acquisition, shutting down services or run (Linux)

- Install Rubinius testing Ubuntu 14.04 native threads (Linux)

- Under Ubuntu on how to use iptables firewall (Linux)

- Java data structures - the linear form of the single-chain applications (Programming)

- Linux --- file descriptors and redirection (Linux)

- Oracle 12CIN-memory in table spaces (Database)

- Process monitoring tools Supervisor start MongoDB (Database)

- Linux asynchronous read documents by AIO (Programming)

- Linux Getting Started tutorial: How to backup Linux systems (Linux)

- Use SecureCRT to transfer files between local and remote hosts (Linux)

- Firewall - Internet Militarization (Linux)

- Security implementation of disk data protection under Linux (Linux)

- How to use the command line ftp upload and download files (Linux)

- Linux shell scripts bubble sort (Programming)

- How to achieve the MySQL Oracle table associated with the two operations update (Database)

- Android custom title bar (Programming)

- MySQL rollback insert statement causes ibd file grows double (Database)

- Sublime Text Add instructions to insert the current time zone (Linux)

- Create a DLL using MinGW and Attention (Programming)

 
         
  Linux Getting Started tutorial: Borrow Windows fonts in Ubuntu 14.10
     
  Add Date : 2017-04-13      
         
         
         
  In fact, any Linux distribution itself has done a lot of work font configuration, the system will be completely abandoned default configuration is not the best way. Fonts can also be used to configure the system even better way is to keep the existing system configuration files intact, only for our own needs supplementary several configuration files.

Here I prepare my newly installed Ubuntu 14.10 system font a little landscaping. Considering that many people use Linux systems and Windows systems like the time to compare, so I decided to borrow a Windows font in the Ubuntu and Windows is configured to show the same effect. The basic idea is as follows:

1. Use the Tahoma font in Ubuntu interface with Microsoft elegant black font, English as Tahoma font, Chinese as Microsoft elegant black;

2. console and programming when using Consolas font with Microsoft elegant black font to Consolas English, Chinese as Microsoft elegant black;

3. Borrowing Windows commonly used six sets of Chinese fonts: Times New Roman, italics, bold, regular script, official script, young round, so typesetting work in Ubuntu, you can achieve and in Windows typesetting same effect;

4. English with Chinese Serif font of Arial, Sans-Serif font with Chinese Microsoft elegant black;

5. For small font Times New Roman open lattice, other fonts need to open lattice.

Once the goal, the specific configuration work is better performed. Start following a specific configuration process.

Set the system fonts

Set the system fonts need a tool that Unity Tweak Tool. In the Ubuntu system, the tool is easy to use than Gnome Tweak Tool. After you install this tool, you can use it to configure the system font. As can be seen from the figure, the font used in the system can be divided into four areas, where the default font and font window title I will set it as Ubuntu font, size 11pt. Here is the Ubuntu Font UI font, often used in the program's dialog boxes, menu bars and other places, Windows in the corresponding is Tahoma. I set to 11pt font document of Sans, monospace I set to 12pt of Monospace, Sans and Monospace font classification can only be regarded, corresponding to a specific font to see what we have configured.

Install Microsoft's fonts English

Microsoft is a very good company, it sets its English font used in the system, such as Arial, Verdena and other open, and everyone can use for free. Of course, these are not included in the open font Tahoma and Consolas. In Ubuntu, you can install ttf-mscorefonts-installer software directly from the source, when the software is installed automatically download and install Microsoft's English font sets.

View profile system

System configuration file, in addition to /etc/fonts.conf, the rest of the configuration files are in /etc/fonts/conf.d directory. Enter the directory ls look, you can see really a lot of configuration files, where each file has a front number.

These numbers what use is it? Or Ubuntu font configuration taken is a kind of thinking it? This question is easy to answer, look at the README it.

No. 00-09 mainly used to set the profile to store fonts directory, numbered 10-19 configuration file is used to set the system in the global properties, such as hinting ah, antialias ah what, and number profiles 20-29 with to set some display font attributes, 30-39 is for a specific font to be replaced, if the system has some famous font is not installed, you can replace it with another with similar fonts, 40-49 is font classification, 50-59 is to load other configuration files, 60-69 for classification select a specific font, the latter too lazy to talk about it. As can be seen, the idea here in front of me font configuration roadmap, and an essay using exactly the same. Oh, actually I borrowed it.

Meanwhile, 50-user.conf file can see that we can put its own configuration file into the ~ / .fonts.conf.d directory. During the configuration process later in my profile will follow the same principle number.

Borrowing Windows Fonts

Microsoft discloses only a few English words, but Tahoma and Chinese font Consolas and all our hands only to copy the Windows system. Borrowed font into ~ / .fonts directory

Write configuration file

Finally, enter ~ / .fonts.conf.d directory, write the appropriate configuration files.

The first step is set to 96 dpi, because this is a global setting, so I took the file name is 10-dpi.conf. The configuration file is very simple

The second step, set in Arial 12px, 13px, 14px, 15px, 16px and 18px when using dot matrix, because this is for a specific font configuration file name so I took the 26-simsun-render.conf.

The third step is to set a monospaced font for consolas with Microsoft elegant black, the contents of this configuration is also very simple, because the font is designated as a category, so I took the file name is 66-monospace.conf.

The fourth step is to set the Sans-Serif Verdana with Microsoft elegant black, the file name 67-sans.conf. If you do not want to use a dot matrix being installed WenQuanYi black, if you do not like Microsoft elegant black Droid Sans Fallback put into Microsoft elegant black front.

The fifth step, the Chinese set Serif font Times New Roman, a file named 68-serif.conf

The sixth step, set interface fonts, Ubuntu will replace Tahoma with Microsoft elegant black, the file name 69-ui.conf

After configuration, fc-cache look, you can find the console fonts from Dejavu Sans Mono become Consolas, and Chinese as Microsoft elegant black. Open the Web page look at me before writing fonts test findings show that the effect is also very good.

Here the configuration methods used to much more concise and clear. It can be said, as long as the principle master font configuration, configuration fonts in Linux systems will no longer be a difficult thing.
     
         
         
         
  More:      
 
- Oracle 12c PDB Analysis (Database)
- Red Hat Enterprise Linux Server 6.5 installation GCC 4.9.2 (Linux)
- How to use Xmanager Remote Desktop and VNC Log (Linux)
- To install and use Docker under linux (Server)
- Java reflection Introduction (Programming)
- The difference between IPython and Python (Linux)
- Vim copy and paste register (Linux)
- Sleuth Kit: used to analyze a disk image and restore files open source forensics tools (Linux)
- About redis in Replication (Database)
- CentOS 7 version how to achieve the power to start the graphical interface (Linux)
- Depth understanding of JavaScript new mechanism (Programming)
- Binary search and modification (Programming)
- Bash difference in single quotes and double quotes (Programming)
- Android development, may cause a memory leak problem (Programming)
- To access an Oracle database using Instant Client (Database)
- Big Data Common Glossary (Linux)
- Docker: installation under Ubuntu (Server)
- PCM audio under Linux (Linux)
- Binary tree and some basic operations with binary list (Programming)
- DB2 commonly used scripting sort out (Database)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.