MapBasicFontStyle

Description

The MapBasicFontStyle element defines the font style portion of a MapBasicTextStyle.

Elements

Table 1 lists the elements that can be contained by a MapBasicFontStyle element.

Table 1. Elements
Element Description

FontName

Identifies the name of the font to use. For example, Arial or MapInfo Symbols, etc. MapInfo Fonts are installed with the product while other fonts are used from the system.
Style Controls text attributes, according to the following list:
  • 0 - Plain
  • 1 - Bold
  • 2 - Italic
  • 4 - Underline
  • 8 - Strikethrough
  • 32 - Shadow
  • 256 - Halo
  • 512 - All Caps
  • 1024 - Expanded

Size

The height of the characters in points.

ForegroundColor

A string value specifying the foreground color of the text.

The value can be any valid CSS color. (See http://www.w3.org/TR/REC-CSS1#color-units.)

BackgroundColor

A string value specifying the background color of the text.

The value can be any valid CSS color. (See http://www.w3.org/TR/REC-CSS1#color-units.)

Example

This example specifies a font style: Verdana 12 pt italic, black with red background.


<ns6:MapBasicFontStyle> 
    <ns6:FontName>Verdana</ns6:FontName> 
    <ns6:Size>12</ns6:Size> 
    <ns6:Style>2</ns6:Style> 
    <ns6:ForegroundColor>black</ns6:ForegroundColor> 
    <ns6:BackgroundColor>red</ns6:BackgroundColor> 
</ns6:MapBasicFontStyle>