<!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.
本程式與隨附的資料依照 Elipse Public License 1.0 版此次發行所隨附的條款而提供,
可以在以下網址取得:http://www.eclipse.org/legal/epl-v10.html