FontSymbol
Description
The FontSymbol element defines a style for a font symbol.
Context
Table 1 lists the elements that can contain, or be contained by, a FontSymbol element.
Contained by | Element | Contains |
---|---|---|
NamedStyle or PointStyle |
FontSymbol |
(empty) |
Attributes
Table 2 lists the attributes of a FontSymbol element.
Attribute | Description |
---|---|
id |
A unique identifier for the element. |
name |
A descriptive name for the element. |
text |
A one-character string value specifying the symbol character to use. If the If the |
family |
One of the following:
The |
size |
A floating-point value specifying the size of the symbol. The |
size-unit |
A reference to a length in the mapinfo codespace, which specifies the unit of measurement used for the The |
stroke |
A string value specifying the color of the symbol. The value can be any valid CSS color. (See http://www.w3.org/TR/REC-CSS1#color-units.) The |
stroke-opacity |
A floating-point value from 0 to 1 specifying the opacity of the symbol. A value of 0 means that the symbol is totally transparent. A value of 1 means that the symbol is totally opaque. A value of 0.5 means that the symbol is 50% translucent. The |
font-style |
An enumeration value specifying the font style. The possible values are:
The |
effect |
A string value specifying the color of the text effect provided by the The value can be any valid CSS color. (See http://www.w3.org/TR/REC-CSS1#color-units.) The |
effect-opacity |
A floating-point value from 0 to 1 specifying the opacity of the text effect. A value of 0 means that the effect is totally transparent. A value of 1 means that the effect is totally opaque. A value of 0.5 means that the effect is 50% translucent. The |
effect-type |
An enumeration value specifying the text effect type. The possible values are:
The |
font-weight |
An enumeration value specifying the font weight. The possible values are:
Note:
normal is equivalent to 200 ; bold is equivalent to 400 .The |
text-decoration |
A string value specifying the text decoration. The value must have the following pattern: a choice of one or more of ( The |
text-case |
An enumeration value specifying the text case. The possible values are:
Note:
default means 'retain the current case'.The |
shadow |
A boolean value ( The |
expand |
A boolean value ( The |
angle |
A floating-point value specifying the rotation angle of the symbol. |
angle-unit |
A string value specifying the unit of measurement used for the |
Examples
This example specifies an 18-point red push-pin symbol from the MapInfo 3.0 Symbols set.
Note that the text
attribute is set to C
, which is decimal code 67 in the UTF-8 encoding, and the family
attribute is set to MapInfo Symbols
, which specifies the MapInfo 3.0 Symbols set. In the MapInfo 3.0 Symbols set, code 67 specifies a push-pin symbol.
<?xml version="1.0" encoding="UTF-8"?>
<NamedStyle
version="MXP_WorkSpace_1_5"
xmlns="http://www.mapinfo.com/mxp">
<FontSymbol
size="18"
size-unit="mapinfo:length pt"
stroke="red"
stroke-opacity="1"
text="C"
family="MapInfo Symbols"/>
</NamedStyle>
This example specifies a 14-point blue star symbol from the MapInfo 3.0 Symbols set.
Note that the text
attribute is set to #
, which is decimal code 35 in the UTF-8 encoding, and the family
attribute is set to MapInfo Symbols
, which specifies the MapInfo 3.0 Symbols set. In the MapInfo 3.0 Symbols set, code 35 specifies a star symbol.
<?xml version="1.0" encoding="UTF-8"?>
<NamedStyle
version="MXP_WorkSpace_1_5"
xmlns="http://www.mapinfo.com/mxp">
<FontSymbol
size="14"
size-unit="mapinfo:length pt"
stroke="blue"
stroke-opacity="1"
text="#"
family="MapInfo Symbols"/>
</NamedStyle>