The Font clause specifies the appearance (typeface, color, etc.) of text objects and has this syntax:
FONT ("fontname", style, size, forecolor [, backcolor] )
Fontname in double quotation marks is the typeface to be displayed. Style is the text attribute of the typeface as shown in the following table. Size must be 0 in a MIF file, because each text object on a Map is attached to the map itself (thus the text size changes as you zoom in or out). Forecolor is an integer representing a 24-bit RGB color. The background color is optional; if you include it, MapInfo Pro fills the area behind the text with the color you specify.
style value | Effect on Font Appearance |
---|---|
0 |
Plain |
1 |
Bold |
2 |
Italic |
4 |
Underline |
16 |
Outline (only supported on the Macintosh) |
32 |
Shadow |
256 |
Halo |
512 |
All Caps |
1024 |
Expanded |
To specify two or more style attributes, add the values from the left column. For example, to specify Bold and All Caps, use 513.