Question

Mapinfo Text creation with specialized Font


Badge +9
  • Contributor
  • 101 replies
Hello

 

 

I need to use a spezialized Font in order to create text characters which represent symbols with predefined symbolization.

 

 

All this because Mapinfo's Font-points are not scaled usefully while zooming, so I will try to use Text instead. I have a specially defined Font and I know the number of each character in the font-table.

 

 

My problem now is, that I need to create an attribute with a char-value which I cannot type in through the keyboard, as I only know the number of the font character.

 

 

How can I create an attribute with a one character-value whose font-char number (e.g. 45) is in the attribute "symbol_number" ?

 

 

I guess Tcl or Python may do the trick, but how ?

 

 

Thanks

 

Michael

3 replies

Userlevel 5
Hi,

 

 

perhaps the CharacterCodeReplacer could help you out here?

 

 

David
Userlevel 3
Badge +17
Hi Michael,

 

 

As a supplement to David's suggestion: when using the CharacterCodeReplacer, be aware the representation of a character code should be prefixed by '0x' if the code is a hexadecimal number. Alternatively, the TextDecoder transformer also might be available.

 

 

Takashi
Badge +9
Thanks a lot.

 

 

CharacterCodeReplacer does what I need.

 

Reply