Ask A Cartographer

Label on multiple lines, but different colors

April 13 2009 | 0 comments
Categories: Labeling

I use vbcrlf to label points on more than one line, but I want the color and font to be different for each line. Do I need to use tags for that like text?

Mapping Center Answer:

You can do this using Text Formatting Tags. The "fnt" tag can be used to change the font and the "clr" tag can be used to change the color.  Here are some examples:

FONT:

     "<FNT name='Arial' size='18'>" & [LABELFIELD] & "</FNT>"

     "<FNT name='Arial' scale='200'>" & [LABELFIELD] & "</FNT>"

COLOR:

     "<CLR red='255' green='255' blue='255'>" & [LABELFIELD] & "</CLR>"

     "<CLR cyan='100' magenta ='100' yellow='100' black='100'>" & [LABELFIELD] & "</CLR>"

If you would like to post a comment, please login.

Contact Us | Legal | Privacy |