My application puts a Trademark (TM) symbol in the titlebar as a superscript "TM". On most target PCs it is displayed as expected. On some, however, it is displayed as a vertical bar.
The application is intended for use everywhere in the world and supports a number of different (spoken) languages.
Can anybody suggest what I need to do to fix this?
This world is not my home. I'm just passing through.
you will need to set the Form's font to something like Tahoma or Verdana , if you use a font like the default microsoft ones it will only show a bar rather than ™
~ if a post is resolved, please mark it as [Resolved] protected string get_Signature(){return Censored;} [vbcode][php] please use code tags when posting any code [/php][/vbcode]
I'm posting a sample project that takes Dynamic_SysOp's comments into account.
I see the problem on my Win98 PC at home. The problem has also been reported from Germany (I have sent them the code and am waiting for their reply)
I don't understand why the standard font (MS Sans Serif) works on some PCs and not on others. Surely this font is available on all installations? Is the TM symbol actually part of another font?
This world is not my home. I'm just passing through.
well on my machine , running xp pro. the trademark symbol wont show with MS Sans Serif , it only shows as a line.
this also happened in vb6 when running xp home edition / ME
hence using a different font like verdana or tahoma
~ if a post is resolved, please mark it as [Resolved] protected string get_Signature(){return Censored;} [vbcode][php] please use code tags when posting any code [/php][/vbcode]
My colleague in Germany tried the code I sent (see earlier) and reported that the TM symbol didn't show up in Tahoma or Verdana either. Any further thoughts?
This world is not my home. I'm just passing through.
My German colleague reports that his PC is running Win2000 SP4. He is still getting the vertical bar in MS Sans Serif, Tahoma and Verdana. Can anyone suggest what I might do to fix the problem?
This world is not my home. I'm just passing through.
Windows allows the user to specify a desktop schema in which they can select different fonts for Title Bars etc. The standard windows schema uses Tahoma for all Title Bars (which is fine for my TM symbol). If the user selects MS Sans Serif though the symbol is not displayed correctly.
So, I have a new question:
How can I override the desktop schema from my application? I've tried specifying the font for $this in the resource file of my main form, but this doesn't seem to work.
Any ideas?
This world is not my home. I'm just passing through.
Im not sure you can, its set that way so the user gets there own look and feel. I suppose you could create a form that does not have a title bar, and use a label instead, mimiking the windows style.
Thanks Grimfort. What you've described is the way I would have expected it to work - if the user specifies a font for titlebars they would not expect individual applications to override it.
I'm not going to try to create my own Title Bar emulation - I've found that kind of thing always causes problems. My users will just have to live with funny-looking text if they select their own font. I guess you could argue that if they've selected a font that doesn't support TM then they should expect not to see it... On the other hand, there are good reasons (e.g. protecting our brand name) why we want TM to appear on the titlebar. However, seeing as it comes up ok in the license agreement and the About box I don't think I'm going to lose too much sleep.
This world is not my home. I'm just passing through.