个人工具
119.28.94.63
该IP地址的讨论
登录
查看“UbuntuHelp:Fontweightsinx11”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:Fontweightsinx11”的源代码
来自Ubuntu中文
←
UbuntuHelp:Fontweightsinx11
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/fontweightsinx11}} {{Languages|UbuntuHelp:fontweightsinx11}} == Font Weights in X11 == I was messing with fonts for a website, and wound up curious what exactly was going on when you leave off the font type in css, or if you specify the default families, such as sans-serif. Sure in Firefox preferences, you could set sans-serif to be any font, but it defaults to 'sans-serif' which is not a real font at all but some kind of default. I looked all over the gnome preferences for some setting defining what sans-serif was with no luck. A bunch of hunting around and research later, and I found the answer, in /etc/fonts/conf.d/ there are a bunch of xml rules files which tell X11 what to do. Example: 60-latin.conf <pre><nowiki> <family>sans-serif</family> <prefer> <family>DejaVu Sans</family> <family>Bitstream Vera Sans</family> <family>Verdana</family> <family>Arial</family> <family>Albany AMT</family> <family>Luxi Sans</family> <family>Nimbus Sans L</family> <family>Helvetica</family> </prefer> </nowiki></pre> So here we see that for latin fonts, sans-serif translates into the first-available from the list. DejaVu if you have it, Bitstream if you have that, etc down to Helvetica. Magic! ---- [[category:CategoryXwindowSystem]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:Fontweightsinx11
。