![JAR search and dependency download from the Maven repository](/logo.png)
schema.fontDefinitions.exsd Maven / Gradle / Ivy
The newest version!
This extension point is used to register fonts with the JFace FontRegistry and with the workbench preference store for use by the Fonts preference page.
This extension point has been deprecated in 3.0. You should now add fontDefinition elements to org.eclipse.ui.themes.
a fully qualified identifier of the target extension point
an optional identifier of the extension instance
an optional name of the extension instance
a unique name that can be used to identify this font definition.
a translatable name of the font to be presented to the user.
<p>the font value. This is in the form: <code>fontname-style-height</code> where <code>fontname</code> is the name of a font, <code>style</code> is a font style (one of <code>"regular"</code>, <code>"bold"</code>, <code>"italic"</code>, or <code>"bold italic"</code>) and <code>height</code> is an integer representing the font height.</p>
<p>Example: <code>Times New Roman-bold-36</code>.</p>
<p>
Only one (or neither) of value or defaultsTo may be used.
</p>
the optional id of the presentation category this font belongs to.
the id of another font definition that is the default setting for the receiver. When there is no preference for this font the font registry will have the value of defaultsTo set for it in the registry.
<p>
Only one or neither of value or defaultsTo may be used.
</p>
a short description of the fonts usage
2.1
Following is an example of an a font definition extension:
<p>
<pre>
<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>
</pre>
</p>
The defaultsTo tag is used as a directive by
the Workbench to set the value of the font definition to the value of defaultsTo
whenever the defaultsTo fontDefinition is updated. This only occurs if the
fontDefinition is at its default value - once it is set by the user this updates
will not occur. The workbench provides 4 fonts:
<P><b>org.eclipse.jface.bannerfont</b>. The banner font is used in wizard banners.<br>
<b>org.eclipse.jface.dialogfont</b>. The dialog font is the font for widgets in dialogs.<br>
<b>org.eclipse.jface.headerfont</b>. The header font is used for section headers in composite text pages.<br>
<b>org.eclipse.jface.textfont</b>. The text font is used by text editors.
The workbench provides the font
definitions for the text, dialog, banner and header fonts.
Copyright (c) 2002, 2005 IBM Corporation and others.<br>
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 <a
href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy