Support and General Use > Theming and Appearance Customization
[App] Rockbox Font Convertor [Windows]
bascule:
I'm really not sure about how drag 'n' drop works with batch files and I don't see how the fontsize parameter would be passed in...
I'm happy with how it is, now.
@ iwantanimac: Are you planning on going for a release with any of these suggestions?
ryran:
Hah. Nice work you two.
iwantanimac:
Lol, i'm looking at the code that's been posted and there's some pretty complicated stuff going on. When i finish my homework i'll give it a look.
May the most elegant and simple soluton win! :D
Oh, and if drag 'n' drop can work - even better! Would make it easier for noobs less talented people :P.
EDIT: Okay i'm looking at all the solutions now. Finally have time!
EDIT2: Sorry, JustJohnny, but Bascule wins. I like his solution better... It truly is more elegant and simple. Just gotta hack in a few more bits 'n pieces (And get 7-Zip on this PC) before i can update everything.
EDIT3: Okay i'm testing now... Works with filenames up to 10 words with sizing... Works with one word filenames without sizing...
EDIT4: Aha! Found a problem! If your filename has a number as the first word. Stupid, probably not going to happen, but it might. Oh well. The rest works perfectly, so release cominatcha pretty much.... now.
iwantanimac:
UPDATES!!! ;D
Okay, 1.1 is out. I've thoroughly tested it and the only thing i can find wrong with it is that if the filename includes a number as the first word (Probalby doesn't even exist normally) then it thinks that's the size. It also did something weird when i did that with a font size.
Other than that it's the best version yet. And i updated the comments to be more obvious when you're not running Notepad++. :D
Anyway, have a look, and as usual i need mirrors, and will need people to update their mirrors, too.
Cheers guys,
iwantanimac
bascule:
Right, using my newly researched batch knowledge, I've got a drag-and-drop version ready ;D
Drag one or multiple font files onto this batch file and it will request the required font size then loop through the fonts converting them.
If you type 'help' at the font prompt, it will jump to the help section
@ iwantanimac: I have NOT updated the actual help text, so you will have to do that :P
The only current restriction is that the .ttf/.otf file must be in the same directory as the batch file when it is dragged and dropped in order to make sure that the AppPath variable is valid.
I would really like to able to drop a font file from anywhere on the PC (network?) to the batch file (similarly located anywhere) and for it to always work.
This could probably be fixed by having separate variables for the font path and the batch application path, but that will have to be later...
Reply here or PM me if you need any further explanation...
...I really must spend less time on this... ;)
[attachment deleted by admin, too old]
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version