Symbol does not display in RichTextBox but does in Word

K

Kevin

This is an obscure question, but I'm hoping someone may have
experienced something like it. My program uses RichTextBox controls
for all the text. Currently text in the Kannada language is being
entered into it using the font KN-TTUma (ttf). One symbol in
particular, the "Soft Hyphen", U+00AD, Keystroke Alt+0173, shows up
fine in Microsoft Word, but it does not display at all in the rich
text boxes. It also does not display in WordPad, so it's not just a
Windows Forms problem, it seems to be rich text in general.

Here is the rtf for the symbol in question. If I save this as
symbol.rtf it does not display in WordPad, but it looks fine in Word.

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fdecor\fprq2\fcharset0
KN-TTUma;}{\f1\fnil\fcharset0 Microsoft Sans Serif;}}
\viewkind4\uc1\pard\f0\fs28\'ad\f1\fs17\par
}

Has anyone ever run into a problem like this where a font character
does not display?

Thanks,
Kevin
 
R

Roy Soltoff

This won't help you here's some additional info. Wordpad uses the rich text
box control, so if WordPad does not support it, richtext won't. Next, 0xAD
must be a strange character. If you bring up the character map system
utility and try to select that character (fopr those character sets that
have it) into the textbox, nothing shows up.

It's possible that the soft hyphen (what AD is) may not be visible. I
believe that it simply indicates the breaking point of a word if the word
needs to wrap at a hyphenation point. So maybe its just not visible in some
apps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top