<!ELEMENT extension (fontDefinition*)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT fontDefinition (description?)>
<!ATTLIST fontDefinition
id CDATA #REQUIRED
label CDATA #REQUIRED
value CDATA #IMPLIED
categoryId CDATA #IMPLIED
defaultsTo CDATA #IMPLIED>
字体值。它的格式为:fontname-style-height
,其中 fontname
是字体的名称,style
是字体样式("regular"
、"bold"
、"italic"
或 "bold italic"
的其中一种),而 height
是一个表示字体高度的整数。
示例:Times New Roman-bold-36
。
只能使用其中一个值(或者两个都不使用)或者 defaultsTo。
只能使用其中一个值(或者两个都不使用)或者 defaultsTo。
<!ELEMENT description EMPTY>
字体用法的简短描述
<extension point=
"org.eclipse.ui.fontDefinition"
>
<fontDefinition id=
"org.eclipse.examples.textFont"
label=
"Text"
>
<description>
The text font</description>
</fontDefinition>
<fontDefinition id=
"org.eclipse.examples.userFont"
label=
"User"
defaultsTo=
"org.eclipse.jface.textFont"
>
<description>
The user font</description>
</fontDefinition>
</extension>
org.eclipse.jface.bannerfont 在向导条幅中使用的条幅字体。
org.eclipse.jface.dialogfont 对话框字体是用于对话框中的窗口小部件的字体。
org.eclipse.jface.headerfont 标题字体用于组合文本页面中的小节标题。
org.eclipse.jface.textfont 文本字体由文本编辑器使用。
Copyright (c) 2002, 2005 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