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

RE: Problems with UNICODE Characters for superscript 4,5,6,7,8,9 by MortenWennevik

MortenWennevik
Fri Mar 07 00:36:00 CST 2008

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.

--
Happy Coding!
Morten Wennevik [C# MVP]



"Alonso" wrote:

> 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



solution of unicode characters by Deepak

Deepak
Wed Oct 22 06:26:03 CDT 2008

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


Re: solution of unicode characters by Jeff

Jeff
Thu Oct 23 14:43:30 CDT 2008

<Deepak ray> wrote in message news:200810227263deepak.ray09@gmail.com...

> 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.