<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ls /proc &#187; 字体</title>
	<atom:link href="http://www.lsproc.com/blog/tag/%e5%ad%97%e4%bd%93/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lsproc.com/blog</link>
	<description>lsproc.com</description>
	<lastBuildDate>Fri, 18 Nov 2011 09:22:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>ZEND studio 编辑器字体美化方法</title>
		<link>http://www.lsproc.com/blog/change_zendstudio_editor_fonts/</link>
		<comments>http://www.lsproc.com/blog/change_zendstudio_editor_fonts/#comments</comments>
		<pubDate>Mon, 14 Jan 2008 12:26:33 +0000</pubDate>
		<dc:creator>lostsnow</dc:creator>
				<category><![CDATA[UsefulTips]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[zend]]></category>
		<category><![CDATA[zendstudio]]></category>
		<category><![CDATA[字体]]></category>

		<guid isPermaLink="false">http://www.lostk.com/blog/change_zendstudio_editor_fonts/</guid>
		<description><![CDATA[转载时请标明文章原始出处和作者信息, 作者: lostsnow.http://www.lsproc.com/blog/change_zendstudio_editor_fonts/ 我这里用的是 ZendStudio 5.5.0 找到这个目录 "Zend\ZendStudio-5.5.0\jre\lib" 除 fontconfig.properties.src 文件保留外，删除所有以 fontconfig. 开头的文件 将 fontconfig.properties.src 文件改名为 fontconfig.properties, 然后打开编辑 把以下的值 dialoginput.plain.alphabetic dialoginput.bold.alphabetic dialoginput.italic.alphabetic dialoginput.bolditalic.alphabetic 改成你要设置的字体名称 这里我设置的是 dialoginput.plain.alphabetic=Lucida Sans Typewriter dialoginput.plain.chinese-ms950=MsYahei dialoginput.bold.alphabetic=Lucida Sans Typewriter Bold dialoginput.bold.chinese-ms950=MsYahei Bold dialoginput.italic.alphabetic=Lucida Sans Typewriter dialoginput.italic.chinese-ms950=MsYahei dialoginput.bolditalic.alphabetic=Lucida &#8230; <a href="http://www.lsproc.com/blog/change_zendstudio_editor_fonts/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>转载时请标明文章原始出处和作者信息, 作者: <a href="http://www.lsproc.com/blog/">lostsnow</a>.<br /><a href="http://www.lsproc.com/blog/change_zendstudio_editor_fonts/">http://www.lsproc.com/blog/change_zendstudio_editor_fonts/</a></p>
<p>我这里用的是 ZendStudio 5.5.0<br />
找到这个目录 "Zend\ZendStudio-5.5.0\jre\lib"<br />
除 fontconfig.properties.src 文件保留外，删除所有以 fontconfig. 开头的文件<br />
将 fontconfig.properties.src 文件改名为 fontconfig.properties, 然后打开编辑<br />
把以下的值</p>
<pre class="brush: text">
dialoginput.plain.alphabetic
dialoginput.bold.alphabetic
dialoginput.italic.alphabetic
dialoginput.bolditalic.alphabetic
</pre>
<p>改成你要设置的字体名称</p>
<p>这里我设置的是</p>
<pre class="brush: text">
dialoginput.plain.alphabetic=Lucida Sans Typewriter
dialoginput.plain.chinese-ms950=MsYahei

dialoginput.bold.alphabetic=Lucida Sans Typewriter Bold
dialoginput.bold.chinese-ms950=MsYahei Bold

dialoginput.italic.alphabetic=Lucida Sans Typewriter
dialoginput.italic.chinese-ms950=MsYahei

dialoginput.bolditalic.alphabetic=Lucida Sans Typewriter Bold
dialoginput.bolditalic.chinese-ms950=MsYahei Bold
</pre>
<p>其中 dialoginput.xxxx.chinese-ms950 是中文所用字体</p>
<p>然后再文件末尾添加定义上面设置的字体名称</p>
<pre class="brush: text">
filename.MsYahei=MSYH.TTF
filename.MsYahei_Bold=MSYHBD.TTF

filename.Lucida_Sans_Typewriter=LucidaTypewriterRegular.ttf
filename.Lucida_Sans_Typewriter_Bold=LucidaTypewriterBold.ttf
</pre>
<p>其中如 filename.MsYahei 中的 MsYahei 就是上面 dialoginput.xxxx.chinese-ms950 所使用的中文名称, 这里空格要改成 "_", 后面的 MSYH.TTF 是你系统中安装的字体文件的名称, 打开系统字体文件夹(如c:\windows\fonts), 以详细方式查看, 文件名一列即是</p>
<p>打开 zend studio, 指定编辑器的字体为 "dialoginput"，然后重启编辑器即可看到效果
<p>-- EOF --</p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li>2007-11-09 -- <a href="http://www.lsproc.com/blog/zend_framework_summary/" title="Zend 框架摘要">Zend 框架摘要</a> (0)</li><li>2007-05-17 -- <a href="http://www.lsproc.com/blog/ubuntu_stheiti_config/" title="Ubuntu 黑体解决方案">Ubuntu 黑体解决方案</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.lsproc.com/blog/change_zendstudio_editor_fonts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 黑体解决方案</title>
		<link>http://www.lsproc.com/blog/ubuntu_stheiti_config/</link>
		<comments>http://www.lsproc.com/blog/ubuntu_stheiti_config/#comments</comments>
		<pubDate>Thu, 17 May 2007 07:01:51 +0000</pubDate>
		<dc:creator>lostsnow</dc:creator>
				<category><![CDATA[Linux&Webserver]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[字体]]></category>
		<category><![CDATA[黑体]]></category>

		<guid isPermaLink="false">http://www.lostk.com/blog/technology/ubuntu_%e9%bb%91%e4%bd%93%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88/</guid>
		<description><![CDATA[转载时请标明文章原始出处和作者信息, 作者: lostsnow.http://www.lsproc.com/blog/ubuntu_stheiti_config/ From: http://www.osxcn.com/ubuntu/edgy-stheiti.html 结合 “Ubuntu的黑体解决方案” 和 “Ubuntu的黑体解决方案(续)” 这 2 篇文章。 此方法在 Ubuntu 6.06、6.10、7.04 上测试通过。 如果你不喜欢华文黑体，也可以使用其他黑体来代替，修改方法不变。 使用华文黑体 (STHeiti) 替换 Ubuntu 中文字体方法： 1、下载 STHeiti 字体 在这里下载 stheiti.rar 字体包，解压后复制到 /usr/share/fonts/truetype 下面。 设置 STHeiti.ttf 可读权限： sudo chmod +r /usr/share/fonts/truetype/stheiti.ttf 2、设置 STHeiti 为首选中文字体 &#8230; <a href="http://www.lsproc.com/blog/ubuntu_stheiti_config/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>转载时请标明文章原始出处和作者信息, 作者: <a href="http://www.lsproc.com/blog/">lostsnow</a>.<br /><a href="http://www.lsproc.com/blog/ubuntu_stheiti_config/">http://www.lsproc.com/blog/ubuntu_stheiti_config/</a></p>
<p>From: <a href="http://www.osxcn.com/ubuntu/edgy-stheiti.html">http://www.osxcn.com/ubuntu/edgy-stheiti.html</a><br />
结合 “<a href="http://www.osxcn.com/ubuntu/ubuntu-stheiti.html">Ubuntu的黑体解决方案</a>” 和 “<a href="http://www.osxcn.com/ubuntu/ubuntu-stheiti2.html">Ubuntu的黑体解决方案(续)</a>” 这 2 篇文章。</p>
<p>此方法在 Ubuntu 6.06、6.10、7.04 上测试通过。<br />
如果你不喜欢华文黑体，也可以使用其他黑体来代替，修改方法不变。</p>
<p>使用华文黑体 (STHeiti) 替换 Ubuntu 中文字体方法：</p>
<p>1、下载 STHeiti 字体</p>
<p>在<a href="http://wyx.nbtvu.net.cn/jmm/Computing/indexComputing.htm#17">这里</a>下载 stheiti.rar 字体包，解压后复制到 /usr/share/fonts/truetype 下面。</p>
<p>设置 STHeiti.ttf 可读权限：<br />
<coolcode linenum="off">sudo chmod +r /usr/share/fonts/truetype/stheiti.ttf</coolcode></p>
<p>2、设置 STHeiti 为首选中文字体</p>
<p><coolcode linenum="off">sudo gedit /etc/fonts/language-selector.conf</coolcode></p>
<p>找到下面内容所在行（共有三处）：<br />
<coolcode linenum="off"><family>Bitstream Vera .... </family></coolcode></p>
<p>在他们下面一行添加：<br />
<coolcode linenum="off"><family>STHeiti</family></coolcode></p>
<p>刷新字体缓存：</p>
<p><coolcode linenum="off">sudo fc-cache -f -v</coolcode></p>
<p>3、设置英文字体和渲染方式</p>
<p>打开 “系统－首选项－字体” 面板：</p>
<p>在字体选项里选择一款英文字体，如：Lucida Grande 或者 Bitstream Vera Sans。<br />
在 “字体渲染” 选项中选择 “次象素平滑” 或者 “最佳形状” 。<br />
update (07/4/21): 也可以参照 “<a href="http://www.osxcn.com/ubuntu/stheiti-drawing.html">更好的华文黑体渲染效果</a>” 那样设置。</p>
<p>注意：如果发现在 Firefox 里英文显示不正常，需要在 Firefox 的 “选项 –> 内容 –> 字体和颜色” 中选择一款英文字体，如：Lucida Grande 或者 Bitstream Vera Sans。</p>
<p>4、强制 STHeiti 不使用微调</p>
<p><coolcode linenum="off">sudo gedit /etc/fonts/fonts.conf</coolcode></p>
<p>加入下面一段：</p>
<pre class="brush: xml">&lt;match target=&quot;font&quot;&gt;
    &lt;test name=&quot;family&quot;&gt;
        &lt;string&gt;STHeiti&lt;/string&gt;
    &lt;/test&gt;
    &lt;edit name=&quot;hinting&quot;&gt;
        &lt;bool&gt;false&lt;/bool&gt;
    &lt;/edit&gt;
&lt;/match&gt;</pre>
<p>如果不明白为什么要最后这一步，请看这里“<a href="http://www.osxcn.com/ubuntu-stheiti2.html">Ubuntu的黑体解决方案(续)</a>”</p>
<p>OK，使用Ctrl+Alt+BackSpace重启x看效果。
<p>-- EOF --</p>
<h2  class="related_post_title">Related Posts</h2><ul class="related_post"><li>2008-08-31 -- <a href="http://www.lsproc.com/blog/install_network_card_driver_on_ubuntu/" title="ubuntu 安装Intel PRO100/1000系列网卡驱动">ubuntu 安装Intel PRO100/1000系列网卡驱动</a> (0)</li><li>2007-07-11 -- <a href="http://www.lsproc.com/blog/diy_your_ubuntu/" title="再谈自定义 ubuntu 安装">再谈自定义 ubuntu 安装</a> (0)</li><li>2007-05-25 -- <a href="http://www.lsproc.com/blog/fluxbox_config/" title="Fluxbox 配置">Fluxbox 配置</a> (0)</li><li>2007-05-23 -- <a href="http://www.lsproc.com/blog/install_unique_operating_system/" title="安装独一无二的操作系统">安装独一无二的操作系统</a> (1)</li><li>2007-05-18 -- <a href="http://www.lsproc.com/blog/ubuntu_partition_and_file_system/" title="Ubuntu 分区和文件系统的选择">Ubuntu 分区和文件系统的选择</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.lsproc.com/blog/ubuntu_stheiti_config/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

