Ubuntu font settings: Using Windows fonts

Source: Internet
Author: User

Basic knowledge

sans-serif= non-liner BODY = Blackbody: Not a specific font, but a type of font, select it is actually equal to choose the type of font in the highest priority font.

Serif= Liner BODY = White body: Ibid.

Monospace=, meaning the same width of the characters: ibid.

Dot Matrix font = bitmap font

Sans serif body is more suitable for computer screen reading, liner body suitable for printing. --because the liner can make the line of sight flat Zieux one line. That means it won't lip the line.

Chinese display in different ways, on the one hand because the Chinese itself has the horizontal and the same height can lead to this level. Line spacing is more important for Chinese.

1. Install fonts

sudo apt-get install Ttf-mscorefonts-installer #微软字体
sudo apt-get install xfonts-wqy #文泉驿-lattice Arial
CD ~
wget http://www.stchman.com/tools/MS_fonts/tahoma.zip #Tahoma Fonts
sudo unzip-d/usr/share/fonts/truetype/msttcorefonts ~/tahoma.zip
sudo fc-cache-f-V
Rm-f ~/tahoma.zip
Fc-cache-f-s-v #刷新字体缓存

2. Enter "Advanced Settings" setting (if not installed, execute sudo apt-get install gnome-tweak-tool)

The following settings:

3. Configuration:

Pay attention to using Wenquanyi Zen Hei's visual habits tool to adjust the English and Chinese fonts on the page clearly, click Create, Save as described.

I tune is Tahoma first, Wenquanyi bitmap second, so English and Chinese are no problem.

Linux fonts

Font file storage Path

/usr/share/fonts/#系统字体, requires root permission to operate

~/.fonts #用户字体, whatever the hell, recommend

Configuration file path

/etc/fonts/fonts.conf #系统配置文件 requires root permission to operate and is valid for programs that require a root password

~/.fonts.conf #用户配置文件, whatever. Valid only for programs that are running on the current user

Command

FC-CACHE-FV #通常复制字体进 ~/.fonts will automatically refresh the font, if not, with this command, if copied into the/usr/share/fonts/, with sudo fc-cache-fv

Fc-match Sans-serif #抓取当前用户sans The font with the highest priority for the-serif class

Fc-match Serif #抓取当前用户serif类字体优先级最高的那款字体

Fc-match monospace #抓取当前用户monospace类字体优先级最高的那款字体

4. Previous configuration is not valid for Firefox and Thunderbird, then set ~/.fonts.conf, add in <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>
<!--Large fonts enable antialiasing--
<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 full effect (because the picture is compressed, please right-click on the picture, view in a new window)

Ubuntu font settings: Using Windows fonts

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.