Skip to content

PhpStorm使用记录

2011 八月 28
tags: ,
by 荒野无灯

Linux下(目前我用的是archlinix,不知道在ubuntu/opensuse等下面情况怎么?),默认字体很模糊。
看了下其启动脚本,发现linux版的phpstorm用的是系统的JRE,并不像在windows下面用的是自带JRE的。
因此,系统中JRE的字体配置会影响到phpstorm,如果你在编辑器中使用的是JRE中的虚拟字体(如monospaced等)的话。
由于我先前调netbeans时已经把monospaced映射到DejaVu Sans Mono了,因此,这里直接在编辑器的配置那里把字体选为monospaced.用虚拟字体的好处是中文与英文可以用不同的字体呈现。
解决字体模糊问题的办法:
开启JVM的反锯齿项:

1
2
3
cd /opt/PhpStorm/bin/
sudo cp PhpStorm.vmoptions PhpStorm.vmoptions.orig
sudo vim  PhpStorm.vmoptions

加上如下选项:

1
2
-Dswing.aatext=true
-Dawt.useSystemAAFontSettings=lcd

对于windows下面的字体,由于用的是自带JRE的,因此要到phpstorm的安装目录下面修改JRE字体配置文件:
JetBrains\PhpStorm 2.1.1\jre\jre\lib\fontconfig.properties
前面关于netbeans的文章中说过修改这个文件的事情,因此这里不再絮叨。

分享一个黑色配色:
来自 phpstorm-dark-theme

喜欢这篇文章吗?

请订阅本站 RSS feed填写您的邮件地址,订阅我们的精彩内容:,欢迎点击这里捐赠以支持荒野无灯转播到腾讯微博 转播到腾讯微博

作者:荒野无灯
出处:Hacklog【Hacklog】

声明: 本站遵循 署名-非商业性使用-相同方式共享 3.0 共享协议. 转载请注明转自Hacklog【荒野无灯weblog】

本文链接: http://ihacklog.com/?p=4763

Leave a Reply

Allowed Tags - You may use these HTML tags and attributes in your comment.

<a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <q cite=""> <strong>

 :wink:  :-|  :-x  :twisted:  :)  8-O  :(  :roll:  :-P  :oops:  :-o  :mrgreen:  :lol:  :idea:  :-D  :evil:  :cry:  8)  :arrow:  :-?  :?:  :!:

Note: You may use basic HTML in your comments. Your email address will not be published.

Subscribe to this comment feed via RSS