True Type Font - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
Language
English
Product name
MapBasic
Title
MapInfo MapBasic Reference
First publish date
1985
Last updated
2023-09-12
Published on
2023-09-12T16:32:32.686312

Syntax

Symbol( shape, color, size, fontname, fontstyle, rotation )

shape is an integer, 32 or larger, specifying which character to use from a TrueType font. To create an invisible symbol, use 32.

color is an integer RGB color value; see RGB() function.

size is an integer point size, from 1 to 48.

fontname is a string representing a TrueType font name (for example, "WingDings").

fontstyle is an integer code controlling attributes such as bold; see table below.

rotation is a floating-point number representing a rotation angle, in degrees.

Description

When you specify a TrueType font symbol, the fontstyle argument controls attributes such as Bold. The following table lists the fontstyle values you can specify:

fontstyle value Symbol Style
0 Plain
1 Bold
16 Border (black outline)
32 Drop Shadow
256 Halo (white outline)

To specify two or more style attributes, add the values from the left column. For example, to specify both the Bold and the Drop Shadow attributes, use a fontstyle value of 33. Styles 16 and 256 are mutually exclusive.