View Single Post
Old 11-18-2007, 10:05 PM   #8
ThunderStick
FLAC
ThunderStick's CarPC Specs
 
ThunderStick's Avatar
 
Join Date: Aug 2006
Location: West Allis, WI
Vehicle: 1986 Jaguar XJS
Posts: 947
My Photos: ()
The way I am trying to impliment is have a few fonts that I have tried out. Create batch files that when called from RR will execute a delete and copy command which will copy over my settings.txt file. There will be a series of this txt files each of them named for the font being used. Inside the text file will be a size for the font and the font name. Which will change all the fonts to the variable specified.

Code like below...

Example Menu line of code for a label
INC,settings.txt
L,407,356,150,33,255,255,255,#FONTSIZE1#,#Font1#," DATE","LEFT"

Example line of code in the DS-Digital.txt file
/DEFINE FONT1 "DS-Digital"
/Define FONTSIZE1 25

Example Batch File name DS-Digital.bat
DEL settings.txt
copy DS-Digital.txt settings.txt

Example Button Command
"RUNQ;$SKINPATH$DS-Digital.bat||WAIT;1||RELOADSKIN||Load;menu.skin"

I use similar coding for changing button commnands and menu displays in my current skin. It works very well, lot of files and maybe there is a more efficient way but this get the job done pretty well and it stays all behind the scenes. When you make the change the only thing you will notice is the fonts changing. It is actually pretty cool.

In the settings.txt file there will be a pre-defined font name and size, ones of which I have tested and know work. This limits the user for on the fly font changes but will ensure everything will work correctly and fit with in the parameters needed. For custom fonts of course the user can allways manually edit the settings.txt file and enter font names and sizes their self.
__________________
86 Jaguar XJS - Completed
New Age - RR Skin
Blades Edge- RR SKIN
"Your two cents are worthless pennies if you consider the exchange rate for my 2 cents"

Last edited by ThunderStick; 11-18-2007 at 10:08 PM.
ThunderStick is offline   Reply With Quote