Trademark Character: DX15/BX40/Motif12/HP1020

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
Trademark Character: DX15/BX40/Motif12/HP1020

Submitted by Anonymous on Wed, 08/29/2001 - 17:57. Developers
Hello all!

I have just been tasked to add trademark characters to some of our XmLabels.
I don`t think I can get away with "(tm)"
They want both the superscript TM and that little "R" with a circle around it.

How do you do that in BX40 or in Motif 1.2?
Thank you, newdebugger

ICS_support

The XmLabel displays an XmString, so you can construct a string with two segments, one of which has your normal text, and the second of which has the text character that corresponds to the symbol that you need in the font which includes that symbol. With this solution, your problem is reduced to finding a font which is guaranteed to be on the system and which has these symbols.

The second solution is to take advantage of the fact that the XmLabel displays a pixmap. In this scenario, you need to render the text, yourself, into a pixmap, render the symbol into the pixmap, and then display the pixmap. This solution will work on all systems but requires much more work.