Closed zxMarce closed 7 months ago
Closing issue marking it completed.
I don't think it's particularly appropriate to embed potentially copyrighted fonts ripped from the roms of legacy systems. This practice could invite legal liability to the project and to Javid himself. Personally, I don't think it is worth the risk.
That said, I'm not sure if there's a mechanism currently in place for swapping out the default font in PGE. If not, it might be worth implementing one so people who want to use their own custom 8x8 fonts would be capable of doing so.
Moros1138,
You're absolutely right, and I thank you for your time.
While I do not really know whether the font is useable outside of the ROM, I do know that Amstrad's own Sir Alan Sugar (AFAIK Sinclair's current copyright owner) does allow free distribution of the ROM (his note is in www.WorldOfSpectrum.org). Nonetheless, this permission does not cover the point of extracting things (fonts, routines, constants, whatever) from the ROM.
I just wanted to contribute something to the project. If there is a way to remove this "non-issue", and the admins concur with your point, please be my guests and kill my notes.
Next time, I'll know better and ask first before posting.
Thanks again, zxMarce.
Hi.
I completed and "expanded" the rough NES emulator, but I wanted a more "familiar" font for PGE itself (
DrawString()
). By familiar, I mean my first machines' font, the T/S1000 and ZX Spectrum (yes, I'm THAT old).I reverse-engineered PGE's font encoding algorithm, extracted the ZX font from the ROMs (hope it's not copyrighted!) and added it to PGE. The fonts can be switched at compile time by adding a simple
#define
in the main app.cpp
file:Don't think I can manage GIT intricacies for submitting patches or pull requests (I said I'm old, remember?), so I'll paste here my modded code in case anyone else wants this. The code is in the first lines of
void PixelGameEngine::olc_ConstructFontSheet()
. Note that, by default, PGE will use the third font definition: The ZX Spectrum ROM font with rounded-corners "$" character.By using this, pretty much any other 80's machine font may be adapted, as long as it uses an 8x8 pixel matrix.
Hope somebody finds this useful.
Thanks for the videos, Javidx9!