ThinkGeo.com    |     Documentation    |     Premium Support

What is intended by CharacterIndex

 Hi,


A point type may be of character type. How does the CharacterIndex tie into all this. From my understanding you need to specify your character font and obviously a characterindex which is an index to all the characters specific to the font (i.e. all fonts have their own set of unique character style sets) Am I correct in assuming this? May I be given some sample code to illustrate the meaning of CharacterIndex?


Thank you


Regards,


Nathanael



Christian,


I think your understanding about the CharacterIndex is right. We implemented it in following 2 steps:

Step1: Get the char stands for the characterIndex using the .net API. Convert.ToChar(indexOfCharacter);


Step2, From the Char, we use a font to draw it, it will show different result based on different fonts input.


Any more questions just feel free to let me know.


Thanks.


Yale

 



 Hi Yale,


Thanks for the quick reply. Ok, I understand it now, however, when opening MS Word I see there are character subsets only available as unicode(hex) values when I want to insert a symbol in MS word. Some Unicode Hex values include alphabetical chars. As far as my understanding goes you cannot convert a unicode hex value to an int for the CharacterIndex property in ThinkGeo. Is this a limitation? Then I need to revert to ASCII(decimal) values which limits the number of symbols available per font drastically.


Regards,


Nat



Christian, 
  
 Thanks for your reply. 
  
 I am not quite sure how the CharacterIndex represent its symbols in MS word; it seems it has more things than we do. The thing is that we only support those characters can be transferred to chars via the static API provided by .net up to now. 
   
 Any more questions just feel free to let me know. 
  
 Thanks. 
  
 Yale