Rockbox Technical Forums

Rockbox General => Rockbox General Discussion => Topic started by: motionman95 on March 18, 2009, 03:41:47 AM

Title: *NEW!* Rockbox Font Converter! With GUI!
Post by: motionman95 on March 18, 2009, 03:41:47 AM
I've basically made a remake of the Rockbox Font Converter that already exists in the Wiki. Except that now, its like 20x more user friendly, it has a GUI, and I think I've made it much easier if you're converting multiple files.

Here's how it works:
1.) Specify the directory that contains the ttf/otf file(s) you wish to convert
2.) Specify the font size
3.) Press "Convert"!

The progress window (launched after you press "Convert") gives a very detailed description of what file is currently being converted, as well as the overall and current file percentage of completion. Also, it includes no additional files! Just one exe, and you can easily convert fonts!

Should I create a Wiki page for it?

Download:
Edit: Link removed until proper licensing is established.

Here's two screenshots! :P

Please, test it to the fullest, and notify me of the bugs! Feature suggestions are welcome!
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: Llorean on March 18, 2009, 03:52:26 AM
Which font converter is this based on? Where's the license? Is there source code?
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: motionman95 on March 18, 2009, 04:18:20 AM
Quote from: Llorean
Which font converter is this based on?

http://www.rockbox.org/twiki/bin/view/Main/RockboxFontConvertor

Quote from: Llorean
Where's the license?

Uhhh.....

Quote from: Llorean
Is there source code?

Yes, but I've decided not to post it.
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: Llorean on March 18, 2009, 04:26:32 AM
"Uhh...." is not an appropriate answer.

Did you use the code of any previous program (if it's based on one, it sounds like the answer is yes). If so, what was the previous program's license that gave you permission to do so, and what license is your new code under?

These are questions that must be answered.

And if it includes parts of convbdf (which it seems to have to, since it's a single executable that's doing its job) then it needs to be GPLv2+ compatible, and you need to release the source code when someone requests it (such as me doing so, now).

I've removed the link for now as per the standard policy of not allowing copyright violations on the forums. When you clear it up, we can put it back.
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: motionman95 on March 18, 2009, 09:29:11 AM
I didn't use any of his code. I just read the wiki page, and after viewing the thread, I discovered what his method was. So to make it clear, I DID NOT TAKE ANY OF HIS CODE. I simple used his method. And to make that even clearer, I've coded this application in a completely different language.

However, the Convbdf and otf2bdf executable is embedded in my application.
Also, earlier when you asked "Where's the license?", I was confused, because I didn't know I needed a license.
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: AlexP on March 18, 2009, 10:50:11 AM
I'm no expert, but that then seems to me to say that you need to release the source code under GPLv2+ as you have embedded convbdf which is under the GPLv2+
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: motionman95 on March 18, 2009, 07:50:53 PM
Are you sure?
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: cool_walking_ on March 18, 2009, 08:07:09 PM
Does that count?  Isn't that pretty much the same as including convbdf and his program in a ZIP archive together?

EDIT: Hmm.

Quote from: http://www.gnu.org/licenses/gpl-faq.html#GPLInProprietarySystem
However, in many cases you can distribute the GPL-covered software alongside your proprietary system. To do this validly, you must make sure that the free and non-free programs communicate at arms length, that they are not combined in a way that would make them effectively a single program.

The difference between this and “incorporating” the GPL-covered software is partly a matter of substance and partly form. The substantive part is this: if the two programs are combined so that they become effectively two parts of one program, then you can't treat them as two separate programs. So the GPL has to cover the whole thing.

I think the way convbdf is embedded makes the font converter effectively one program, thus placing it under the GPL.
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: motionman95 on March 18, 2009, 08:31:50 PM
I guess so...although, it's not exactly embedded. When you run the program, it extracts the 2 exe's to the user's harddrive, and runs then runs them using a hidden command prompt. Do you think I still should place it under GPL? The earlier rockbox font converter was pretty much the same...
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: JdGordon on March 18, 2009, 08:44:56 PM
thats not embedding at all then :) you're fine (i tihnk)...

however... it would be nice to contribute back to the comunity and put up the source with an acceptable license so it could maybe be added into svn and rbutil
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: Llorean on March 18, 2009, 08:58:26 PM
They're embedded since it's one file that contains the converters. Even if it copies parts of itself to disk, and runs them from disk, then deletes them, they're still embedded in it.

Notice the use of the word "effectively." This is "effectively" a single program in that the user downloads on .exe that contains all the functionality.

I'm pretty sure to avoid this, he'd have to distribute his front end as a completely separate program, without embedding the other tools inside of it. You'd need to download an archive with his executable and the other two, similar to how the one he linked keeps the programs as separate files.
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: rasher on March 18, 2009, 09:08:08 PM
I agree with Llorean. You need to share the source.

Why are you so reluctant to do so anyway? It's in the spirit of Rockbox, and it will make sure your program will still be useful even if you stop caring about it - then other people could keep it updated (plus a million other benefits).
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: cool_walking_ on March 18, 2009, 09:32:55 PM
The earlier rockbox font converter was pretty much the same...
There are a couple of differences.
1. The "makefont.bat" script is, by virtue of being a batch script, open-source.
2. It *sits on top of* convbdf and otf2bdf - if you want to, you can run convbdf and otf2bdf directly.
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: motionman95 on March 18, 2009, 09:38:34 PM
Quote
I agree with Llorean. You need to share the source.

Why are you so reluctant to do so anyway?

It's not exactly reluctance, it's just that I don't think anyone here uses the language it's coded in...but hey, you never know. Sooo...here it is.  :) (It's in zip format, with an included README)

http://www.mediafire.com/download.php?gm25jnz1zmw

Edit: Llorean, can I now put the compiled exe back up? :)

Can I?  ;D
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: Llorean on March 20, 2009, 12:12:27 AM
It should be okay, yes as long as you comply with the GPL (in terms of providing your own license notification, etc).
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: motionman95 on March 20, 2009, 12:14:34 AM
Creative Commons?  ???
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: Llorean on March 20, 2009, 12:16:19 AM
I would suggest you give the GPLv2 a read and see what your own obligations are under it. Then do some reading about compatible licenses. Your license choice needs to be compatible with both the otf2bdf license (which I'm not entirely sure about, so you need to find that out) and the convbdf license (GPLv2 or later).
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: motionman95 on March 20, 2009, 12:21:27 AM
Geez, I almost wish I made by own programs instead of using convbdf and otf2bdf...  :o
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: Bagder on March 20, 2009, 03:56:42 AM
Geez, I almost wish I made by own programs instead of using convbdf and otf2bdf...  :o

Welcome to Rockbox. This is open source and free software taken very far. Your spirit seems to be quite the opposite...
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: kugel. on March 20, 2009, 08:16:48 AM
Geez, I almost wish I made by own programs instead of using convbdf and otf2bdf...  :o

Welcome to Rockbox. This is open source and free software taken very far. Your spirit seems to be quite the opposite...

It doesn't seem to me that he doesn't share the spirit. He released the source. I think he just doesn't want to mess with all those licensing issues (which I can understand).

But it needs to be done.
Geez, I almost wish I made by own programs instead of using convbdf and otf2bdf...  :o
That wouldn't save you the licensing either.
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: Daveybaby on March 20, 2009, 09:09:58 AM
Geez, I almost wish I made by own programs instead of using convbdf and otf2bdf...  :o
That wouldn't save you the licensing either.
How so? If he's written all of the code himself he can do whatever he wants with it.
As far as i know, the GPL doesnt require that all programs linked to in a forum are licensed under the GPL.
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: gevaerts on March 20, 2009, 09:35:06 AM
Geez, I almost wish I made by own programs instead of using convbdf and otf2bdf...  :o
That wouldn't save you the licensing either.
How so? If he's written all of the code himself he can do whatever he wants with it.
As far as i know, the GPL doesnt require that all programs linked to in a forum are licensed under the GPL.
If you distribute software, you have to think about licensing. Whether or not that means open source has nothing to do with it.
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: motionman95 on March 20, 2009, 10:41:16 AM
How do I apply a license? Just say "This software is licensed under GPL v2.0"?
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: painkiller on March 20, 2009, 12:19:43 PM
Basically: Yes.

Read more about that here (http://www.gnu.org/licenses/gpl-howto.html).
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: motionman95 on March 22, 2009, 10:39:39 PM
All right I think I've done everything the GPL requires...so here it is:
http://www.mediafire.com/download.php?mjuzmjlafdr
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: Thecoolgman on March 24, 2009, 08:19:15 PM
Oh wow this is cool
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: thenrik on March 26, 2009, 01:13:11 AM
 Hi:

  I clicked on the download link but MediaFire comes up with an error, most likely the file has been removed. Is there any other download link?

Thanks,

Tom
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: motionman95 on March 26, 2009, 02:02:28 AM
I gives me no errors, although that version has too many bugs, and I'll upload the version with fixes tomorrow.
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: Thecoolgman on March 28, 2009, 08:01:48 PM
I gives me no errors, although that version has too many bugs, and I'll upload the version with fixes tomorrow.

Do you have it fixed yet?
Title: Re: *NEW!* Rockbox Font Converter! With GUI!
Post by: motionman95 on March 28, 2009, 08:35:57 PM
Here it is...although, since I'm not at my home computer I can't add the license files. I will though, as soon as I get home.

http://www.mediafire.com/download.php?zteit2nznzu