Full screen to Window mode Font Size problem....
by mohanmartin · in Torque Game Builder · 11/11/2008 (12:41 am) · 2 replies
Hi everyone..
in my game i set scoreGui font size 36. when i play in full screen mode(1024 x 768) font size is ok, but in windowed mode(800 x 600) font size not reduced even i set HorizSizing = "relative"; and VertSizing = "relative";.
how can i reduce font size in windowed mode relatively..
thanks
in my game i set scoreGui font size 36. when i play in full screen mode(1024 x 768) font size is ok, but in windowed mode(800 x 600) font size not reduced even i set HorizSizing = "relative"; and VertSizing = "relative";.
how can i reduce font size in windowed mode relatively..
thanks
About the author
Recent Threads
#2
But, UFT file are not creating in ~common/data/fonts folder, my code is
also i used my own profile for GUI text...
in my ~mygame/main.cs i set the resolution of game like this.. not in ~/common/preferences/defaultPrefs.cs
in fullscreen mode(1024x768) i need my font size as 36, so i write the fontbase * 18
but, both fullscreen and windowed mode font size not changed..
If i set the resolution in ~/common/preferences/defaultPrefs.cs as (i comment "setScreenMode(1024, 768, 32, true);" in mygame/main.cs)
what is the problem in my script... thanks again.
12/16/2008 (5:36 am)
Thanks for your solution...But, UFT file are not creating in ~common/data/fonts folder, my code is
function populateFonts()
{
%font = "Arial Black";
%sizes = "12 18 24 32 36";
for (%i = 0; %i < getWordCount(%sizes); %i++)
populateFontCacheRange(%font, getWord(%sizes, %i), 32, 126);
writeFontCache();
}also i used my own profile for GUI text...
if(!isObject(GuiTextw36Profile)) new GuiControlProfile (GuiTextw36Profile)
{
fontType = "Arial Black";
fontSize = $font0;
fontColor = "255 255 255";
justify = "center";
};in my ~mygame/main.cs i set the resolution of game like this.. not in ~/common/preferences/defaultPrefs.cs
setScreenMode(1024, 768, 32, true);
in fullscreen mode(1024x768) i need my font size as 36, so i write the fontbase * 18
$font0 = $fontbase * 18;
but, both fullscreen and windowed mode font size not changed..
If i set the resolution in ~/common/preferences/defaultPrefs.cs as (i comment "setScreenMode(1024, 768, 32, true);" in mygame/main.cs)
$pref::Video::resolution = "1024 768 32";the game will run in only windowed mode (800x600).
what is the problem in my script... thanks again.
Torque Owner Shaz
This works for me most of the time when switching between full screen and window.