XML FOR DOMINO


font element
Example

Example

Represents a font in rich text.

Containment Hierarchy

Contained by: <actionbar>, <actionbarstyle>, <block>, <bordercaption>, <button>, <column>, <columnheader>, <embeddedcontrol>, <embeddedfolderpane>, <embeddeddatepicker>, <parstyle>, <run>, <sectiontitle>, <sparefont>, <sublevel>, <tablerowstyle>, <title>, <toplevel>

Syntax

<!ELEMENT font EMPTY>

Attributes

<!ATTLIST font

name%string;#IMPLIED
color%color;#IMPLIED
size%length;#IMPLIED
styleNMTOKENS#IMPLIED
pitch(%font.pitches;)#IMPLIED
truetype%boolean;#IMPLIED
familyid%hex;#IMPLIED
>

color


familyid
name
pitch
size
style
truetype
Defined entities for <font> element

The %font.names; entity lists the names that can be used in the font name attribute in addition to the specific font names, such as Courier New.

Syntax:

<!ENTITY % font.names "monospace |  multilingual | sans-serif | serif | user-interface">

The %font.pitches; entity defines the types of font pitches you can specify in DXL.

Syntax:

<!ENTITY % font.pitches "fixed | variable">

fixed


variable
The %font.styles; entity lists the style options for font.

Syntax:

<!ENTITY % font.styles "normal | bold | italic | underline | strikethrough | superscript | subscript | shadow | emboss | extrude">

bold


emboss
extrude
italic
normal
shadow
strikethrough
subscript
superscript
Usage

In DXL, the <font> element is not a container like it is in HTML. It is associated with other content by being a child of a container. For example, to make a run of text red:

<run> <font color='red' />

This is red text.

</run>

Example
Example
See Also