Fixed width font for Win/Linux/Mac

BlitzMax Forums/BlitzMax Beginners Area/Fixed width font for Win/Linux/Mac

Marco A G Pinto(Posted 2012) [#1]
Hello!

I have a TextArea gadget in my utility.

What font shall I use so that all characters have the same height and width for Windows, Linux and Mac?

I have tried:
Global gFont:TGuiFont = LoadGuiFont("Arial",8)
SetGadgetFont view_ram_ascii_text_area,gfont

But the width varies on each character.

Thanks!

Kind regards from,
>Marco A.G.Pinto
-------------------


Midimaster(Posted 2012) [#2]
there is a special command to use the system monospaced font on each machine:

Local Mono:TGuiFont=LookupGuiFont(GUIFONT_MONOSPACED,12)
SetGadgetFont view_ram_ascii_text_area, Mono


Last edited 2012


jsp(Posted 2012) [#3]
Courier should be a font with a fixed width.


Marco A G Pinto(Posted 2012) [#4]
Thanks