Hi,
We have an application that has its own character map. Everything is working
fine until yesterday. We got a new requirement which was to add superscript
numbers from 0-9. Numbers 1,2,3 are display correctly.
The issue is the 0, 4-9. With those characters I got the square on my Rich
Text Box.
The funny thing is, if I copy/paste one of them from Windows Character Map,
after that all character will work using our character map.
The way I'm passing the characters from our C.M to the Rich Text Box is the
follow:
Clipboard.SetText(CType(sender, UIButton).Text, TextDataFormat.UnicodeText)
and
Me.m_CurrentRTB.Text =
Clipboard.GetData(System.Windows.Forms.DataFormats.UnicodeText)
Does anyone had this issue before?
Thanks for the help
Alonso
Morten Wennevik [C# MVP] - 07 Mar 2008 06:36 GMT
Hi Alonso,
Only 1, 2 and 3 are more commonly supported in most fonts as they are used
indicating squared, cubed numbers (not sure what 1 is used for). When you
paste these characters you are most likely adding font information so for
these characters the fonts are changed. Try setting the Font used by the
RichTextBox to the same font you found in the character map containing the
other superscript numbers.

Signature
Happy Coding!
Morten Wennevik [C# MVP]
> Hi,
>
[quoted text clipped - 23 lines]
>
> Alonso
Deepak ray - 22 Oct 2008 12:26 GMT
ChrW (8308) is for 4 and set "Lucida Sans Unicode" font type.
more information about unicode characters visit this site http://www.alanwood.net/demos/wgl4.html
Jeff Johnson - 23 Oct 2008 20:43 GMT
> ChrW (8308) is for 4 and set "Lucida Sans Unicode" font type.
> more information about unicode characters visit this site
> http://www.alanwood.net/demos/wgl4.html
??? Were you trying to reply to someone? Because you started your own thread
instead.