您的位置:68399皇家赌场 > 域名注册 > Ubuntu 11.04上黑体展现的安装

Ubuntu 11.04上黑体展现的安装

发布时间:2019-06-22 18:45编辑:域名注册浏览(117)

    基础知识

    68399皇家赌场 1

    68399皇家赌场 2

    在意运用文泉驿的视觉习于旧贯工具把网页上的英文和中文字体都调治清晰, 点 Create, 按表达保存好。

    1. 树立目录/usr/share/fonts/winfonts,从XP上将常用字体到此目录下
    2. 运营sudo fc-cache -fv,字体立时生效
    3. 在/etc/fonts/conf.d下建设构造金鼎文配置文件:67-simsun-sharp.conf

    1。首先下载由作者修改过的准圆字体(原文者是何人不知晓)。
    地址:
    用户名:ubuntu,密码:ubuntuftp

    无衬线体更符合计算机荧屏阅读,衬线体适合打字与印刷。——因为衬线能够使得人视野平齐于一行。也等于说不会读破行。

    英特网就算有成千上万关于Ubuntu下草书展现的标题,然则经本人在Ubuntu 11.04 Natty下测试,效果都十一分差。这里提供三个粗略的秘技,只修改金鼎文的渲染,无需修改/etc/fonts/local.conf

    2。将字体cp到~/.fonts 或者 /usr/local/share/fonts/ 或者 /usr/share/fonts/ 。
    即使嫌麻烦,就停放~/.fonts好了,然后刷新一下字体缓存,实践 代码:
    sudo fc-cache -f
    专注,假若不是放置~/.fonts的请小心字体的权杖。
    一经出现方框字体,请展开终端,cd到你的书体目录,并实践 代码:
    sudo chmod 755 ZhunYuan.ttf

    1. 跻身 “Advanced settings" 设置(假使未有安装,施行 sudo apt-get install gnome-tweak-tool)

    内容为:

    宣示:小编修改了本来的英文部分,换到原本准圆的英文字体,并对一些非英文如 á ô è ï 之类实行了步长调治。

    1. 配置:

    Alt PrtSc K重启X-Windows生效.

    比方感到准圆自带的英文不窘迫,那么可以设想vera sans yuanti,即盛名的名牌的圆体了,参见: http://www.linuxidc.com/Linux/2008-01/10695p4.htm

    命令

    <?xml version="1.0"?>
    <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
    <!-- SimSun Configure File -->
    <fontconfig>
    <match target="font">
            <test qual="any" name="family">
                    <string>SimSun</string>
                    <string>宋体</string>
                    <string>NSimSun</string>
                    <string>新宋体</string>
            </test>
          <test name="weight" compare="less_eq" target="pattern">
             <const>medium</const>
          </test>
            <test compare="less_eq" name="pixelsize"><double>17</double></test>
            <test compare="more_eq" name="pixelsize"><double>12</double></test>
            <edit name="antialias" mode="assign"><bool>false</bool></edit>
            <edit name="embeddedbitmap" mode="assign"><bool>true</bool></edit>
            <edit name="hinting" mode="assign"><bool>true</bool></edit>
            <edit name="hintstyle" mode="assign"><const>hintfull</const></edit>
            <edit name="autohint" mode="assign" ><bool>false</bool>
            </edit>
        </match>
    </fontconfig>

    只顾:在Ubuntu下采纳本准圆字体有版权方面包车型地铁标题——大约有吗,请放心大胆的私行的应用。别的,只好满意粤语、英文、法文、日文等(作者也不驾驭那多少个是何许字符)用户的急需。

    sudo apt-get install ttf-mscorefonts-installer #微软字体
    sudo apt-get install xfonts-wqy  #文泉驿-点阵钟鼓文
    cd ~
    wget #Tahoma 字体
    sudo unzip -d /usr/share/fonts/truetype/msttcorefonts ~/tahoma.zip
    sudo fc-cache -f -v
    rm -f ~/tahoma.zip
    fc-cache -f -s -v  #刷新字体缓存

    一旦你平素没修改过那个文件,那么能够一直复制粘贴,不然本配置文件仅作参照。注意,ZhunYuan必须放在每一种<family>xxx</family>的第二行。
    代码:
    <fontconfig>
            <alias>
                    <family>serif</family>
                    <prefer>
                            <family>Bitstream Vera Serif</family>
                            <family>ZhunYuan</family>
                            <family>DejaVu Serif</family>
                            <family>AR PL ShanHeiSun Uni</family>
                            <family>AR PL ZenKai Uni</family>
                    </prefer>
            </alias>
            <alias>
                    <family>sans-serif</family>
                    <prefer>
                            <family>Bitstream Vera Sans</family>
                            <family>ZhunYuan</family>
                            <family>DejaVu Sans</family>
                            <family>AR PL ShanHeiSun Uni</family>
                            <family>AR PL ZenKai Uni</family>
                    </prefer>
            </alias>
            <alias>
                    <family>monospace</family>
                    <prefer>
                            <family>Bitstream Vera Sans Mono</family>
                            <family>ZhunYuan</family>
                            <family>DejaVu Sans Mono</family>
    68399皇家赌场,                        <family>AR PL ShanHeiSun Uni</family>
                            <family>AR PL ZenKai Uni</family>
                    </prefer>
            </alias>
            <match target="font" >
                    <test qual="any" name="family" compare="eq" >
                            <string>ZhunYuan</string>
                            <string>Bitstream Vera Serif</string>
                            <string>Bitstream Vera Sans</string>
                            <string>Bitstream Vera Sans Mono</string>
                    </test>
                    <edit name="rgba" mode="assign">
                            <const>rgb</const>
                    </edit>
                    <edit name="antialias" mode="assign" >
                            <bool>true</bool>
                    </edit>
                    <edit name="autohint" mode="assign" >
                            <bool>false</bool>
                    </edit>
                    <edit name="hinting" mode="assign" >
                            <bool>true</bool>
                    </edit>
                    <edit name="hintstyle" mode="assign" >
                            <const>hintslight</const>
                    </edit>
            </match>
            <match target="font" >
                    <test name="family" compare="contains" >
                            <string>Song</string>
                            <string>Sun</string>
                            <string>Kai</string>
                            <string>Ming</string>
                    </test>
                    <!-- check to see if the font is just regular -->
                    <test name="weight" compare="less_eq">
                            <int>100</int>
                    </test>
                    <test compare="more_eq" target="pattern" name="weight" >
                            <int>180</int>
                    </test>
                    <edit mode="assign" name="embolden" >
                            <bool>true</bool>
                    </edit>
            </match>
            <match target="font" >
                    <test name="family" compare="contains" >
                            <string>Song</string>
                            <string>Sun</string>
                            <string>Kai</string>
                            <string>Ming</string>
                    </test>
                    <edit name="globaladvance">
                            <bool>false</bool>
                    </edit>
                    <edit name="spacing">
                            <int>0</int>
                    </edit>
                    <edit name="hinting">
                            <bool>true</bool>
                    </edit>
                    <edit name="autohint">
                            <bool>false</bool>
                    </edit>
                    <edit name="antialias" mode="assign">
                            <bool>true</bool>
                    </edit>
                    <test name="pixelsize" compare="less_eq">
                            <int>18</int>
                    </test>
                    <edit name="antialias" mode="assign" >
                            <bool>false</bool>
                    </edit>
            </match>
    </fontconfig>

    /usr/share/fonts/  #系统字体,要求root权限技巧操作

    想不想给协调的Ubuntu字体美化下啊?上边跟小编来吧!

    点阵字体=位图字体

    3。修改/etc/fonts/language-selector.conf。
    代码:
    sudo gedit /etc/fonts/language-selector.conf

    68399皇家赌场 3

    Serif=衬线体=白体:同上

    越来越多Ubuntu相关消息见Ubuntu 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=2

    本文由68399皇家赌场发布于域名注册,转载请注明出处:Ubuntu 11.04上黑体展现的安装

    关键词: 68399皇家赌场

上一篇:Centos6.8进入救援情势的办法

下一篇:没有了