Menu

Graphics not displaying properly

General
Anonymous
2014-08-27
2014-08-29
  • Anonymous

    Anonymous - 2014-08-27

    In an application where line drawing characters are required for window borders and for boxing drop down menus I get various spurious characters being displayed. I've tried the default and CONSOLA fonts without being able to get rid of them. Is there a solution to this problem?

    Paul

     
    • Jos Schaars

      Jos Schaars - 2014-08-27

      Those would be some rarely used corners, for instance thick horizontal to thin vertical.
      Your application is probably built to be used with code page 437.
      The Windows code page will be 850 or something, the ASCII values of these corners are defined in there as extended characters.
      I once thought to add some option to config.txt to force these characters to lines/corners.
      But no one so far complained about this.
      So your only real option for now would be to edit the vDos.ttf file, remove these characters (for instance with FontForge) add font=vDos to cofig.txt.

      Jos

       

      Last edit: Jos Schaars 2014-08-27
      • Anonymous

        Anonymous - 2014-08-28

        Jos: I haven't done anything with FontForge but I put vDos.ttf in my vDos folder and amended config.txt to read 'font=vDos' and the program displayed correctly :-)

        Thanks
        Paul

         
        • Jos Schaars

          Jos Schaars - 2014-08-28

          vDos.ttf is the font as embedded in vDos.exe.
          So I was puzzled as you reported it did fix your graphic characters.
          To be sure, I (re)downloaded it and added “font=vDos” to config.txt.
          As expected, nothing happened.
          So it’s the trick of Gnips that did the job!
          To confirm, just remove the “font=vDos” line from config.txt.

          Jos

           
          • Anonymous

            Anonymous - 2014-08-29

            Jos: you are quite correct - I tried again with 'font=vDos' REMmed out and the graphics characters displayed as they should.

            Paul

             
  • Edward Mendelson

    The standard box-drawing characters should display correctly.

    1. Which application are you using?

    2. What country (US, UK, NL, etc.) is your Windows system set up to use?

     
    • Anonymous

      Anonymous - 2014-08-27

      Edward: 1. It's a 'Notepad' look-alike written in Power C (see attachment)

      1. If I understand you correctly, under 'Regional and language Options', 'Regional Options' is set to 'English - United Kingdom', and 'Advanced' is set to the same. The 'Code page conversion tables' options have both 437 and 850 checked.

      PS - see my reply to Jos. Adding vDos.ttf has cured the problem

       

      Last edit: Anonymous 2014-08-28
  • Gnips

    Gnips - 2014-08-27

    I had some similar problems and changed the OEM code page to 437.
    After this change it worked. You need to reboot though.

    The key is here:

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage]
    "OEMCP"="437"

     
    • Anonymous

      Anonymous - 2014-08-27

      Gnips: I made the change you suggested (from 850 to 437) and rebooted but it made no change - the characters did not display correctly.

      Funnily enough, if I run the program in a DOS command window (under XP) the display is as it should be.

      PS - see my reply to Jos. Adding vDos.ttf has cured the problem

       

      Last edit: Anonymous 2014-08-28
    • Anonymous

      Anonymous - 2014-08-29

      Gnips: following Jos' advice, I have found that your registry change was what actually caused the graphics characters to display correctly. Thanks.

      Paul

       
MongoDB Logo MongoDB