This post has been thanked 2 times. |
|
||||
Re: hopefully foolproof script to easily change titanium fonts
Thanks, I think this may be incorporated in my ROM as an easy way to add customization. Plus since I am starting out with a customized font, it will allow easy addition of extra panels, just run the script! I might tinker around with it some to ensure it does what I need it to, but original credit will still go to you!
+1 Great Work!
__________________
Please help contribute to my PPC Glossary!
|
|
||||
Re: hopefully foolproof script to easily change titanium fonts
Something I noticed, you said it makes a backup file, and I see where it takes a .bak file and restores it to the a .cpr file, but I don't see where it makes the .bak file. in your install script i see the following lines:
Copy( "\windows\titanium_480x640.cpr", "\windows\titanium_480x640.cpr" ) Copy( "\windows\titanium_640x480.cpr", "\windows\titanium_640x480.cpr" ) Are those last files supposed to be .bak? Looking good other than that! |
|
||||
Re: hopefully foolproof script to easily change titanium fonts
Tested it out, works great! Created a modified cab that has 3 fonts and prebuilt scripts in it for my ROM, your font (script creator -Digital-7), mine (ROM creator - Chaos Times) and lwrdchvys (ROM guinea pig - MostWasted).
Haven't built it into the ROM yet, but did run the cab to test it. Also, I added a readme that gives you credit for the original script and links to your threads, as well as instructions and a recommendation that before changing fonts they run the backup script. Since the font scripts make a copy of the current cpr file, if they ran 2 fonts they would have the last font backed up, not the original, so if they reinstall the original between font changes, they will always have it available |
This post has been thanked 1 times. |
|
||||
Re: hopefully foolproof script to easily change titanium fonts
Yes in that case I think it'd be easier just to run the switch script and input the current font and then tahoma as the desired.. the switching script is what I use all the time. it makes it so much easier to switch fonts on the fly without fear of ruining other settings, like titanium weather icon sizes, if someone is running different icons from the cpr instead of bronzeres.dll... I am trying to find out how to list directories in mortscript so it prompts the user with a list of all available fonts to choose from.
|
|
||||
Re: hopefully foolproof script to easily change titanium fonts
Yes, the switch script rules! Just trying to keep it simple for the noob who doesn't want to know how it works, just wants it to work
Not sure if it is possible, but if Mortscrip can restart just Titanium, rather than the whole phone, that would be quicker EDIT: Think I might have found a way to just refresh Titanium, TWeather links to a program called CHomeRefresh.exe. That might do it Last edited by ChaosTheory; 07-18-2009 at 11:05 PM. |
This post has been thanked 1 times. |
|
||||
Re: hopefully foolproof script to easily change titanium fonts
that would be cool
i got it so that it can figure out what the current font is set as, attached updated mortscript. I'm using it for the switch script. use the part that defines sourcefont in the install script. its a bit clunky in having to define lots of variables and do replace operations and stuff, but it works. And yes, chomerefresh.exe works perfectly! sweet find. +1 Last edited by raidzero; 07-19-2009 at 07:46 PM. |
This post has been thanked 1 times. |
|
||||
Re: hopefully foolproof script to easily change titanium fonts
Awesome, +1 on the new script.
What it the command to run a file? Going to use your scripts in my ROM, but I want to replace the last lines with: Message( Restarting Titanium - Enjoy!) **Run Command** ( CHome.exe) I'll look into it myself if your not sure, just thought you might know, and busy trying perfect my ROM. Last edited by ChaosTheory; 07-19-2009 at 08:16 PM. |
|
||||
Re: hopefully foolproof script to easily change titanium fonts
Quote:
of course the path needs to be correct.. |
This post has been thanked 1 times. |
|
|
|