2) I went to the character map program and copied from the Courier New font - the same as I'm using in Dev. Pasting into dev all I got was a question mark. For instance, the greek letter alpha looks like α (as compared to a) but copying and pasting that into Dev gives me a ? Ditto for beta - β.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
1 : Courier New has no greek symbols in it.
2 : The font you use in dev would most likely not have any greek letters in it.
3 : You would need to use a font like symbol to draw your characters.
4 : You will need to get the charactor codes for the symbols you're going to use. Copy and paste would work but in the ide the charactors will not look like the ones you coppied.
5 : Then draw them, if you're writing to a console you will have to change the console's font.
^*^
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How do I draw greek letters (like the mathematical symbols alpha and omega) onto the screen?
In Dev 4.9.9.0 if I try adding those characters I just get question marks in their places.
I would suggest using the GDI routines. Checkout CreateFont() and TextOut() to paint the text to a window surface.
Kip
I have no problem with CreateFont() and TextOut(). My problem is that Dev does not recognise the characters and replaces them with question marks.
There are two ways to approach the problem.
(1) You draw the greek symbols yourself
(2) Use the symbols that are part of a font. You will need to ensure that the font you are using supports the greek characters you want.
When you say "Dev does not recognise the characters and replaces them with question marks." do you mean in the actual IDE?
You may need to change the code page you are using to one that supports greek characters.
Of course, I'm just guessing.
rr
1) then it doesn't quite look right.
2) I went to the character map program and copied from the Courier New font - the same as I'm using in Dev. Pasting into dev all I got was a question mark. For instance, the greek letter alpha looks like α (as compared to a) but copying and pasting that into Dev gives me a ? Ditto for beta - β.
Well that worked well... The letters worked in the text box but not in the post.
1 : Courier New has no greek symbols in it.
2 : The font you use in dev would most likely not have any greek letters in it.
3 : You would need to use a font like symbol to draw your characters.
4 : You will need to get the charactor codes for the symbols you're going to use. Copy and paste would work but in the ide the charactors will not look like the ones you coppied.
5 : Then draw them, if you're writing to a console you will have to change the console's font.
^*^