Skip to main content
Question

Mapinfo Text creation with specialized Font


mhab
Contributor
Forum|alt.badge.img+10
  • Contributor
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

david_r
Celebrity
  • July 11, 2013
Hi,

 

 

perhaps the CharacterCodeReplacer could help you out here?

 

 

David

takashi
Evangelist
  • July 11, 2013
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

mhab
Contributor
Forum|alt.badge.img+10
  • Author
  • Contributor
  • July 11, 2013
Thanks a lot.

 

 

CharacterCodeReplacer does what I need.

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings