Page 1 of 1

Take out Deepspace font - how to?

Posted: Wed Dec 18, 2013 2:01 pm
by Zireael
Hi folks,
I'd like to use the excellent font that is included in the Deepspace Ships OXP without using the ships themselves.

What do I need to copy in order to get the font? Is this font widely available or was it made by the author of the OXP? (because if it is widely available, I guess I could make a standalone font OXP without violating the rule that says we're not allowed to distribute OXPs lacking clear licenses)

Heeelp!

(and yes, I know I have way too many ideas)

Re: Take out Deepspace font - how to?

Posted: Wed Dec 18, 2013 2:19 pm
by cim
Zireael wrote:
Is this font widely available or was it made by the author of the OXP? (because if it is widely available, I guess I could make a standalone font OXP without violating the rule that says we're not allowed to distribute OXPs lacking clear licenses)
Identifont suggests that it's OCR A Extended, though there are so many OCR A variants that it could easily be one of the others.

There is an open source OCR A implementation which you could reimplement it from.

Re: Take out Deepspace font - how to?

Posted: Wed Dec 18, 2013 2:27 pm
by Zireael
Great, now how do I implement a new font in Oolite (aka. what files do I need to take a look at in Deepspace)?

Re: Take out Deepspace font - how to?

Posted: Wed Dec 18, 2013 2:43 pm
by cim
You need to override oolite-font.plist (start from the one with the core game, since there have been a few changes since the last Deepspace release).

You need to change the texture key to point to a file in Textures, and then update the widths array with the correct character widths for that texture.

The texture file is a 16x16 grid of square font characters, aligned to the left of the square. The top two rows are used for special Oolite symbols and control characters. The remainder are normal characters roughly equivalent - with a couple of exceptions - to a standard Latin-1 set. The 'widths' array is then a list (left to right, then top to bottom) of the widths of each character (a character taking the full width of its box would have the value 8 here)

Re: Take out Deepspace font - how to?

Posted: Wed Dec 18, 2013 3:56 pm
by Zireael
Ok, here is the link to the standalone font OXP.

Please read the readme before jumping to conclusions, it contains license info.

https://www.dropbox.com/s/9sffqy7kxgton ... ont1.0.zip