eclipse中字体的修改

1、想要只修改eclipse中中文字体的大小

将$Eclipse目录$/plugins/org.eclipse.jface_3.7.0.I20110522-1430.jar

注:org.eclipse.jface_3.7.0.I20110522-1430.jar文件名字后面数字部分可能会不一样,请自己视自己的文件而定。

用压缩的方式打开org.eclipse.jface_3.7.0.I20110522-1430.jar 文件

/org/eclipse/jface/resources下你的系统对应.properties文件的字体那几行,里边有字体大小。

如:里边的jfacefonts_windows7.properties

###############################################################################

# Copyright (c) 2010 IBM Corporation and others.

# All rights reserved. This program and the accompanying materials

# are made available under the terms of the Eclipse Public License v1.0

# which accompanies this distribution, and is available at

# http://www.eclipse.org/legal/epl-v10.html

#

# Contributors:

# IBM Corporation - initial API and implementation

###############################################################################

# Font file for JFace when running under Windows7

#############################################################

# START NON-TRANSLATABLE

org.eclipse.jface.bannerfont.0=Tahoma-bold-10


org.eclipse.jface.headerfont.0=Tahoma-bold-12


org.eclipse.jface.textfont.0=Courier New-regular-10

org.eclipse.jface.textfont.1=Courier-regular-10

org.eclipse.jface.textfont.2=Lucida Console-regular-9


# END NON-TRANSLATABLE



2、想修改全局字体的大小:


菜单栏里面点Window-Preference-General-Appearance-Colors and Fonts,再在右边的框里选Java-Java Editor Text Font(overrides default:Text Font),然后再点右边的Edit按钮,编辑好了点确定,再OK就行啦。。




posted @ 2013-06-02 14:14:36 kuye 阅读(5436) 评论(0)
发表评论
昵称
邮箱
网址