个人工具
119.28.94.63
该IP地址的讨论
登录
查看“字体”的源代码 - Ubuntu中文
页面
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“字体”的源代码
来自Ubuntu中文
←
字体
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
字体是计算机调用显示字形的仓库。 ==基础知识== Sans-serif=无衬线体=黑体:并不是具体一款字体,而是一类字体,选择它其实等于选择这类字体中优先级最高的那款字体。 Serif=衬线体=白体:同上 Monospace=等宽字体,意思是字符宽度相同:同上 点阵字体=位图字体 无衬线体更适合电脑屏幕阅读,衬线体适合打印。——因为衬线可以使得人视线平齐于一行。也就是说不会读破行。 中文显示时有不同的方式,一方面因为中文本身拥有的横和同高度就可以导致这种平齐。行距对中文更重要。 [http://wiki.archlinux.org/index.php/Fonts_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87) Archlinux Wiki 字体]有中文字体更详细的信息。 ==Linux字体== 字体文件存放路径 <pre>/usr/share/fonts/ #系统字体,需要root权限才能操作</pre> <pre>~/.fonts #用户字体,随便怎么搞,推荐</pre> 配置文件路径 <pre>/etc/fonts/fonts.conf #系统配置文件,需要root权限才能操作,对需要输入root密码的程序有效</pre> <pre>~/.fonts.conf #用户配置文件,随便怎么搞,只对当前用户运行的程序有效</pre> 命令 <pre>fc-cache -fv #通常复制字体进~/.fonts就会自动刷新字体,如果没有,用这个命令,如果复制进的是/usr/share/fonts/,用sudo fc-cache -fv</pre> <pre>fc-match sans-serif #抓取当前用户sans-serif类字体优先级最高的那款字体</pre> <pre>fc-match serif #抓取当前用户serif类字体优先级最高的那款字体</pre> <pre>fc-match monospace #抓取当前用户monospace类字体优先级最高的那款字体</pre> ===配置.fonts.conf=== 文泉驿的视觉习惯工具 http://wenq.org/cloud/fcdesigner_local.html 把你最喜欢的字体拉到最上方,如果你特别注重英文字体(某些中文字体中的英文字型很难看),那把最喜欢的英文字体拉到最上方,其次是最喜欢的中文字体。这样,程序优先会使用你设定的英文字体,然后中文字再用其次的中文字体。(这个时候注意下[[Flash#.font.conf 挑剔英文字体需要注意的情况|Flash 问题]])。 把生成的.fonts.conf复制到当前用户主目录,没有就新建,完成。 ===Qt3、Qt4、KDE3、KDE4、Gtk2、GNOME2=== Qt3和Qt4应该不用设置就会用Sans Serif字体,调出qtconfig看看。 <pre>/usr/lib/qt3/bin/qtconfig #Qt3配置工具</pre> [[File:Fontqt3.jpeg]] <pre>qtconfig #Qt4配置工具,这个工具自身的保存字体功能一直有问题,不用管,改了.fonts.conf,这边一并会改的。</pre> [[File:Fontqt4.jpeg]] KDE3和KDE4,需要设定 <pre>kcontrol #KDE3配置工具-外观和主题-字体,等宽选择Monospace,其余选择Sans Serif</pre> [[File:Fontkde3.jpeg]] <pre>systemseetings #KDE4配置工具-观感-外观-字体,等宽选择Monospace,其余选择Sans Serif</pre> [[File:Fontkde4.jpeg]] 随便下面的“圆整字体边角”都启用,取消“不包括范围”,勾选“使用次像素渲染”,其实这里修改的也是.fonts.conf中渲染部分 <span class="plainlinks">[http://www.diamondlinks.net <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">link building service</span>] '''非GNOME2环境'''下的Gtk2可以用gtk-chtheme工具,<span class="plainlinks">[http://www.gumball-machine.com/vending-machines.html <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">vending machines</span>] GNOME2用这个工具后会与GNOME2本身的设置起冲突,'''需要删除 .gtkrc-2.0(切记)'''。 <pre>sudo apt-get gtk-chtheme</pre> <pre>gtk-chtheme</pre> [[File:Fontgtk2-gtk-chtheme.jpeg]] ==Monospace== Monospace 字体族( <span class="plainlinks">[http://www.andrewflusche.com/services/spotsylvania-dui-lawyer/<span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">Spotsylvania DUI lawyer</span>] family)的字体是用于终端下面以及编程使用。这类字体的要求是能区分 1 i l,o 0 O。 {| |[[Image:Inconsolata.png|thumb|center|600px|Inconsolata 字体的终端效果]] |} ==字体渲染== 除了字体本身的设计外,文字显示的最终效果还受字体渲染和显示器硬件影响。 参考[[字体渲染]]。 ==获取字体== ===中文=== {{main|免费中文字体}} <pre>sudo apt-get install ttf-wqy-microhei #文泉驿-微米黑</pre> <pre>sudo apt-get install ttf-wqy-zenhei #文泉驿-正黑</pre> <pre>sudo apt-get install xfonts-wqy #文泉驿-点阵宋体</pre> ===非中文=== *[http://www.theleagueofmoveabletype.com/ 最漂亮的新开源字体集合,以下的均不包括] *[http://dejavu-fonts.org/wiki/index.php?title=Download DejaVu字体] *[http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&item_id=DoulosSIL_download#FontsDownload SIL字体] *[http://ftp.gnu.org/gnu/freefont/ GNU FreeFont] *[https://fedorahosted.org/releases/l/i/liberation-fonts/ Liberation] *[http://robertgschwartz.homestead.com/ Dr. Robert Schwartz Greenville] *[http://sourceforge.net/projects/cm-unicode/files/ Computer Modern Unicode fonts] *[http://www.levien.com/type/myfonts/inconsolata.html inconsolata] == == Fonts for other operating systems As understanding of use, you can use these fonts to Ubuntu, of course, provided you have genuine copy, or ... ... Windows 7 default English font is Segoe UI. Microsoft Simplified Chinese font is elegant black (with hinting), Traditional Chinese font is Microsoft is bold. Snow Leopard <span class="plainlinks"> [http://www.prweb.com/releases/2011/02ChensunMillsCT/prweb5041554.htm <span style = "color: black; font-weight: normal; text-decoration: none ! important; background: none! important; text-decoration: none; "> Chensun Mills </ span>] default English font is LucidaGrande, which added after the new government approved Chinese Simplified Chinese font Hiragino Sans GB (but not the default Chinese font, with hinting). [[Category: Chinese]] [[Category: landscaping]]
该页面使用的模板:
模板:Main
(
查看源代码
)
返回至
字体
。