ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  trademark
Posted by Leo on May-04-2012 03:13
Hello, Peter,

How do I insert a superscripted ? at location X, after the word Meter?
Thanks.

$m->addTitle2($perlchartdir::Top, "<*bgColor=eebbee,width=12*>\\n\\nABC-ABC-
MeterX\\n1_SYMBOL", "arialbd.ttf", 11, 0x000000);

  Re: trademark
Posted by Peter Kwan on May-05-2012 00:08
Hi Leo,

Actually, there is an example called "Icon Pie Chart (2)" included in ChartDirector. In that example, the chart title in fact contains the superscripted TM. It is like:

$m->addTitle2($perlchartdir::Top, "<*bgColor=eebbee,width=12*>\\n\\nABC-ABC-
MeterX<*font,super*>TM<*/font*>\\n1_SYMBOL", "arialbd.ttf", 11, 0x000000);

Alternatively, many fonts include the TM character. It is the character at Unicode U+2122. Assuming you are really using the "arialbd.ttf" (this font always exists on Windows and Mac OS X as it is provided by the OS; on Linux/FreeBSD/Solaris, you would need to ensure the font is copied to the ChartDirector fonts subdirectory), you font should contain the superscripted TM character. In this case, you can enter superscripted TM just by directly entering the TM character. You can then save the PHP code in UTF8 format. If you prefer to save the PHP code as ASCII, you may enter the superscripted TM character as \\xE2\\x84\\xA2 (the UTF8 encoding for the superscripted TM character in PHP string syntax).

Hope this can help.

Regards
Peter Kwan