Menu

greek letters

2004-08-06
2012-09-26
  • Nobody/Anonymous

    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.

     
    • Kip

      Kip - 2004-08-06

      I would suggest using the GDI routines. Checkout CreateFont() and TextOut() to paint the text to a window surface.

      Kip

       
    • Nobody/Anonymous

      I have no problem with CreateFont() and TextOut(). My problem is that Dev does not recognise the characters and replaces them with question marks.

       
    • Nobody/Anonymous

      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

       
    • Nobody/Anonymous

      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 - β.

       
    • Nobody/Anonymous

      Well that worked well... The letters worked in the text box but not in the post.

       
    • Nobody/Anonymous

      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.

      ^*^

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.