This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
YoYoYonnY's profile picture

ComputerCraft bitmap fonts for X11

Started by YoYoYonnY, 22 February 2018 - 01:06 AM
YoYoYonnY #1
Posted 22 February 2018 - 02:06 AM
GitHub page, the README is pretty self explanatory.

Preview:

(Cropped image of gnome-terminal running test script, background image from here)

Took me a weekend to get a working PCF and a few more days to fix most bugs in the code. IMO worth it, because I've wanted the CC font in my terminal for a while now.

Since X11 has built-in support for PCF files, you'll be able to use the ComputerCraft font on virtually any Linux distribution (Given a few restrictions, Google Chrome does not like bitmap fonts, for example, and some applications ignore fonts with the wrong proportions/metrics). In fact, I believe it is possible to convert the files so even the kernel terminals can use them.

I might look into converting the font to TTF or OTF too, although those formats are much more complex.
Fontforge might make the conversion pretty easy, though.

I might also look into mapping the glyphs at U+0000-U+001F and U+007F-U+00A0 to printable codepoints (The PCF format is not at all designed for multibyte encodings, but it's allowed).
ThreeSpy712 #2
Posted 25 March 2018 - 08:15 PM
Cool! I'll try and install this on my Raspberry Pi soon. Will get back to you on that.