Ubuntu font settings: use Windows Font

Source: Internet
Author: User

Ubuntu font settings: use Windows Font

Ubuntu font settings: use Windows Font

Basic knowledge

Sans-serif = inlined body =: it is not a specific font, but a kind of font. Selecting it is actually the same as selecting the font with the highest priority among these fonts.

Serif = lined body = white body: Same as above

Monospace = Equal-width font, meaning the same character width: Same as above

Dot Matrix font = bitmap font

The inlined body is more suitable for computer screen reading, and the inlined body is suitable for printing. -- The linefeed can align the line of sight. That is to say, it will not read the broken lines.

Chinese characters are displayed in different ways. On the one hand, Chinese characters are displayed horizontally and at the same height. Line spacing is more important for Chinese.

1. Install the font

Sudo apt-get install ttf-mscorefonts-installer # Microsoft Font
Sudo apt-get install xfonts-wqy # wenquanyi-
Cd ~
Wget http://www.stchman.com/tools/MS_fonts/tahoma.zip # Tahoma font
Sudo unzip-d/usr/share/fonts/truetype/msttcorefonts ~ /Tahoma.zip
Sudo fc-cache-f-v
Rm-f ~ /Tahoma.zip
Fc-cache-f-s-v # refresh the font cache

2. Go to "Advanced settings" settings (if not installed, run sudo apt-get install gnome-tweak-tool)

The following settings:

3. Configuration:

Note: Use the visual habits tool of wenquanyi to clear the English and Chinese characters on the webpage. Click Create and save as instructed.

I am calling Tahoma first and wenquanyi bitmap second, so there is no problem in English and Chinese.

Linux font

Font File Storage path

/Usr/share/fonts/# system font, which requires root permission.

~ /. Fonts # user font. Recommended

Configuration File Path

/Etc/fonts. conf # the system configuration file requires the root permission to operate. It is valid for programs that require the root password.

~ /. Fonts. conf # The user configuration file is valid only for the program running by the current user.

Command

Fc-cache-fv # usually copy the font ~ /. Fonts will automatically refresh the font. If not, use this command. If it is copied to/usr/share/fonts/, use sudo fc-cache-fv.

Fc-match sans-serif # capture the font with the highest priority of the sans-serif font of the current user

Fc-match serif # capture the font with the highest priority of the current user's serif class.

Fc-match monospace # capture the fonts with the highest priority of the current user's monospace Fonts

4. The configuration in the previous step is invalid for Firefox and Thunderbird, and then ~ /. Fonts. conf. Add the following to <fontconfig>:

<Match target = "font">
<Edit mode = "assign" name = "autohint">
<Bool> false </bool>
</Edit>
</Match>
<Match target = "font">
<Edit mode = "assign" name = "hinting">
<Bool> true </bool>
</Edit>
</Match>
<Match target = "font">
<Edit mode = "assign" name = "hintstyle">
<Const> hintfull </const>
</Edit>
</Match>
<Match target = "font">
<Edit mode = "assign" name = "antialias">
<Bool> false </bool>
</Edit>
</Match>
<! -- Enable anti-aliasing when using a large font -->
<Match target = "font">
<Test name = "size" qual = "any" compare = "more">
<Double> 12 </double>
</Test>
<Edit name = "antialias" mode = "assign">
<Bool> true </bool>
</Edit>
</Match>
<Match target = "font">
<Test name = "pixelsize" qual = "any" compare = "more">
<Double> 16 </double>
</Test>
<Edit name = "antialias" mode = "assign">
<Bool> true </bool>
</Edit>
</Match>

5. log out or restart the system to see the complete effect (because the image is compressed, right-click the image and view it in the new window)

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.