Support and General Use > Theming and Appearance Customization

[App] Rockbox Font Convertor [Windows]

<< < (3/14) > >>

bascule:
This case does not work in the 1.1 Beta:


--- Code: ---makefont comic bold.ttf
--- End code ---

because it's missing the font size (which is now allowed), but my code used it's presence to determine if it was a spaced name or not.

I'm working on it...

EDIT: I've stopped working on it for now :(
For the life of me, I cannot get the FOR... command to do what I want and any other solution will be clunky and very inelegant.
I may just knock together that solution, but it won't be till next week now...

All other cases and the Help/About functionality work fine. :)

iwantanimac:
That's fine. ill have a look at it ASAP (Probably tomorrow) and see what i can do.

Otherwise i might just use the Choice command - can you set a timeout on that? If so ill just use that.

Clunky? sure but for now it should be ok - just until we figure something more useful out.

bascule:
Well, it's done...

I'm not very happy, because it's double the size, but it does now cope with up to 8 arguments on the command line (e.g., makefont comic special broad font.ttf 12) with automatic detection of whether a font size has been specified as the last argument (and defaulting to 8pt if it has not).

As for the CHOICE command, it seems to be a separate executable (for Win2000 at least), so I have not looked further at that option.

[attachment deleted by admin, too old]

JustJohnny:
Hi.

Below is code for a patch that will:
* accept multiple single spaces in a file name (I've tested it with upto 12 arguments. Theoretical limit is number of arguments allowed by OS)
* has a default font size--if font size not specified
It basically concatentates all command line arguments into the file name, except for the last one, which it then checks to see if it is an integer or empty to determine the font size.

Currently can't handle titles with multiple spaces between words. I've only tested the patch code (on WindowsXP), and haven't actually converted any fonts with the complete batch file.

Hope this helps,

JJ

----- edit: merged code into attached file --------

[attachment deleted by admin, too old]

iwantanimac:
thanks for the input, guys. ill have a look at this later, and see what works best.

@JustJohnny: could your code be implemented in the new beta version? where exactly would it go?

can't fiddle now, on my psp, and about to leave for lunch.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version