Enhancement: Console Text Size
by David Wyand · in Torque Game Engine · 08/05/2004 (9:25 am) · 6 replies
Greetings!
I've only just received my shiny new Mac two days ago and have begun the process of moving my code base over. One thing that stuck out for me was the size of the TGE console window text. It was much too tiny for me to read, especially when compared to the Window's console window.
To illustrate, here's the current MacOSX TGE console window:

And the Window's TGE console window:

To increase the text size, you'll need to go to common/ui/defaultProfiles.cs. Find the code for the GuiConsoleProfile:
and make the following change (change is in bold):
This change will not modify the Window's console text while increasing the size for the Mac. Here's the final result:

Enjoy!
- LightWave Dave
I've only just received my shiny new Mac two days ago and have begun the process of moving my code base over. One thing that stuck out for me was the size of the TGE console window text. It was much too tiny for me to read, especially when compared to the Window's console window.
To illustrate, here's the current MacOSX TGE console window:

And the Window's TGE console window:

To increase the text size, you'll need to go to common/ui/defaultProfiles.cs. Find the code for the GuiConsoleProfile:
if(!isObject(GuiConsoleProfile)) new GuiControlProfile ("GuiConsoleProfile")
{
fontType = ($platform $= "macos") ? "Courier New" : "Lucida Console";
fontSize = 12;
fontColor = "0 0 0";
fontColorHL = "130 130 130";
fontColorNA = "255 0 0";
fontColors[6] = "50 50 50";
fontColors[7] = "50 50 0";
fontColors[8] = "0 0 50";
fontColors[9] = "0 50 0";
};and make the following change (change is in bold):
if(!isObject(GuiConsoleProfile)) new GuiControlProfile ("GuiConsoleProfile")
{
fontType = ($platform $= "macos") ? "Courier New" : "Lucida Console";
[b]fontSize = ($platform $= "macos") ? 14 : 12; // DAW: Added check for MacOS[/b]
fontColor = "0 0 0";
fontColorHL = "130 130 130";
fontColorNA = "255 0 0";
fontColors[6] = "50 50 50";
fontColors[7] = "50 50 0";
fontColors[8] = "0 0 50";
fontColors[9] = "0 50 0";
};This change will not modify the Window's console text while increasing the size for the Mac. Here's the final result:

Enjoy!
- LightWave Dave
About the author
A long time Associate of the GarageGames' community and author of the Torque 3D Game Development Cookbook. Buy it today from Packt Publishing!
#2
08/05/2004 (10:54 am)
Cool, thanks Dave.
#3
I bought an eMac G4 1.25GHz with 512MB RAM. It has a built-in ATI Radeon 9200 w/32MB. It came with the latest MacOSX 10.3.x and all the cool goodies that entails. I spent part of a day downloading Xcode 1.2 so I could start my TGE development.
After looking at my possible options (including used Macs around the Toronto area) this worked out to be the best for me. I wanted something cheap enough that I could afford it now, and with my current focus on tool development, I didn't need the high-end.
I'll be posting a new .plan shortly detailing what it was like to port my code base over to the Mac.
- LightWave Dave
08/05/2004 (11:03 am)
Greetings Phil!I bought an eMac G4 1.25GHz with 512MB RAM. It has a built-in ATI Radeon 9200 w/32MB. It came with the latest MacOSX 10.3.x and all the cool goodies that entails. I spent part of a day downloading Xcode 1.2 so I could start my TGE development.
After looking at my possible options (including used Macs around the Toronto area) this worked out to be the best for me. I wanted something cheap enough that I could afford it now, and with my current focus on tool development, I didn't need the high-end.
I'll be posting a new .plan shortly detailing what it was like to port my code base over to the Mac.
- LightWave Dave
#5
I've decided to change my console even further to make it easier to read. I realized that the Courier New font on OSX is a serif font, while that used under Windows is sans serif. At this point size, I feel that a sans serif font is easier on the eyes:

This makes use of the Andale Mono font. I'm not sure if this font comes with OSX prior to 10.3, so I'll have to rely on you to speak up if you're running under a previous version.
Here's all of the code changes (in bold) I've made in the same file mentioned above:
- LightWave Dave
08/09/2004 (1:41 pm)
Greetings!I've decided to change my console even further to make it easier to read. I realized that the Courier New font on OSX is a serif font, while that used under Windows is sans serif. At this point size, I feel that a sans serif font is easier on the eyes:

This makes use of the Andale Mono font. I'm not sure if this font comes with OSX prior to 10.3, so I'll have to rely on you to speak up if you're running under a previous version.
Here's all of the code changes (in bold) I've made in the same file mentioned above:
if(!isObject(GuiConsoleProfile)) new GuiControlProfile ("GuiConsoleProfile")
{
[b]fontType = ($platform $= "macos") ? "Andale Mono" : "Lucida Console"; // DAW: Changed Mac font from Courier New[/b]
[b]fontSize = ($platform $= "macos") ? 14 : 12; // DAW: Added check for MacOS[/b]
fontColor = "0 0 0";
fontColorHL = "130 130 130";
fontColorNA = "255 0 0";
fontColors[6] = "50 50 50";
fontColors[7] = "50 50 0";
fontColors[8] = "0 0 50";
fontColors[9] = "0 50 0";
};- LightWave Dave
#6
08/26/2004 (8:50 am)
Quick note: I committed this to HEAD today. Thanks Dave.
Torque 3D Owner Phil Carlisle