Thread View: borland.public.cppbuilder.nativeapi
2 messages
2 total messages
Started by Renald Yazmir
Thu, 19 Jul 2007 16:38
TextOut special symbols
Author: Renald Yazmir
Date: Thu, 19 Jul 2007 16:38
Date: Thu, 19 Jul 2007 16:38
17 lines
1262 bytes
1262 bytes
Hello, I draw a text using TextOut. I have problem with special characters like degree symbol or diameter symbol. I can draw these symbols as a picture of the screen, but I would prefer to display them as the part of the text. Thank you Rony
Re: TextOut special symbols
Author: Clayton Arends
Date: Thu, 19 Jul 2007 15:54
Date: Thu, 19 Jul 2007 15:54
12 lines
1343 bytes
1343 bytes
The characters you can display are dependent on the font. Most of the current true-type fonts will have the characters you need. As a guide, use the Windows tool "Character Map" (charmap.exe) to show you the ASCII or Unicode values to use for the font you have chosen. Then, you will just need to set up your string correctly: // These will output the same thing Canvas->TextOut(x, y, "98\xb0" "F"); Canvas->TextOut(x, y, "98" "\xb0" "F"); - Clayton
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads