locked
Monospaced Font or TTF in IDE? RRS feed

  • General discussion

  • Anyone know why Small Basic uses a monospaced font on my Windows 7 (64 bit) machine at home, but a Truetype font on our Windows XP machines at school?

    I'm trying to do some ASCII art with a class, and layouts which look fine in development at home are much harder to work with at school. I know Small Basic is designed to be simple, but if it's not customisable I would prefer it was consistent!

     

    Thursday, January 5, 2012 8:02 PM

All replies

  • No idea why this should be, perhaps it is the setting you have for windows.  A fixed width font may be selected to draw in the GraphicsWindow.

    GraphicsWindow.FontName = "Courier New"
    GraphicsWindow.FontSize = 30
    GraphicsWindow.DrawText(100,100,"Hello World")

    The TextWindow font and IDE is monospaced also on my Windows 7.

    I think the IDE uses a font called Consolas - if this doesn't exist on the XP, perhaps it defaults to something else.  Test with this:

     

    GraphicsWindow.FontName = "Consolas"
    GraphicsWindow.FontSize = 30
    GraphicsWindow.DrawText(100,100,"Hello World")

     

    • Edited by litdev Friday, January 6, 2012 7:00 PM
    Friday, January 6, 2012 6:47 PM
  • Good idea. I'll have a tinker.

     

    Friday, January 6, 2012 7:03 PM
  • Look here http://professionaldilettante.com/consolas-font-on-xp-without-visual-studio/2009.10.05 This font only comes with VS I think.

    It can be dowloaded http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=17879 but this needs VS 2005 or VS 2008 I think - can't see how to get it without some form of VS

    • Edited by litdev Friday, January 6, 2012 7:13 PM
    Friday, January 6, 2012 7:08 PM
  • I'll see if that can be installed on our WindowsXP boxes at work. Might do the trick. Thanks!
    Friday, January 6, 2012 7:22 PM