music Symbol in Text , Draw??

Login to reply to this topic.
Wed, 2008-07-30 09:39
Joined: 2007-01-17
Forum posts: 99

Hi All,
I am getting music symbol in a string from a server. The Symbol is however not rendered correctly on screen. Instead some junk is displayed in place of the Symbol. How do i render the music note Symbol as it is??

Thanks in Advance


Shashi Kiran G M


Wed, 2008-07-30 10:01
Joined: 2005-11-20
Forum posts: 1248
Re: music Symbol in Text , Draw??

With somewhat exotic "characters" like a musical note the first question for me is always: Does my font support it?

I think that in order to save space the fonts on Symbian smartphones do not contain that many characters, and it might be that your music symbol is not there at all.

You could for example try to find out the Unicode code point of the symbol in question and write a little Symbian test program that tries to display it.


René Brunner

Wed, 2008-07-30 11:56
Joined: 2007-01-17
Forum posts: 99
Re: music Symbol in Text , Draw??

Hmm.. i was looking for some code Eye-wink


Shashi Kiran G M

Wed, 2008-07-30 12:12
Joined: 2005-11-20
Forum posts: 1248
Re: music Symbol in Text , Draw??

Well, I think chances are well against you: I would guess that your font does *not* have the symbol in question. I would only go ahead and think about code after checking the existence of the symbol.

Anyway, if you have the code point of that thing, let us say 1234, to check you can do a TChar(1234), assign that to a descriptor and do a CWindowGC::DrawText in a view's Draw() method.


René Brunner

Wed, 2008-07-30 12:17
Joined: 2007-01-17
Forum posts: 99
Re: music Symbol in Text , Draw??

I understand what you are saying . i also thought of the same but to do this i need to replace the music note symbol with its numeric code. The problem is that ithe IDE does not support the Symbol so that i can find and replace or atleast remove it.

I wanted to know whether there was an utility that checks for unicode symbols like these in a string and automatically replace them by its equivalent ascii code or anything thats can be drawn


Shashi Kiran G M

Wed, 2008-07-30 12:25
Joined: 2005-11-20
Forum posts: 1248
Re: music Symbol in Text , Draw??

As far as I know there is no predicate in Symbian to ask "Does font X support the character with the codepoint Y i.e. is a shape included for it?"

I think it's not there because it's not needed. If everything is ok with your encodings, such "unsupported" characters will just show up as small boxes on the phone's screen - completely harmless, if you ask me.


René Brunner

Thu, 2008-07-31 06:43
Joined: 2007-01-17
Forum posts: 99
Re: music Symbol in Text , Draw??

The Best solution i could come up with was to eliminate the character music Symbol . its Hex value is : e2 99 ab.. I instead draw a music symbol Image at the place of the text.


Shashi Kiran G M

  • Login to reply to this topic.