Swordfish90 / cool-retro-term

A good looking terminal emulator which mimics the old cathode display...
21.84k stars 835 forks source link

Request: Improved PCF (bitmap) font support #740

Open ali1234 opened 1 year ago

ali1234 commented 1 year ago

CRT already supports these if you add them to the QML and resources. Bitmap fonts have the benefit of being pixel-perfect by default, so they work with the low-resolution rasterization methods without requiring hinting/alignment tweaks. It would be nice if there was a way to use them like this without having to recompile the program. pixelSize can be automatically derived, but the other options would need to be configurable.

Here is an example of using teletext1.pcf font from Debian tvfonts package (also a custom colour scheme):

image

        ListElement{
            name: "SAA5243"
            text: "SAA5243 (1991)"
            source: "fonts/1991-saa5243/teletext1.pcf"
            lineSpacing: 0
            pixelSize: 10
            baseScaling: 3
            fontWidth: 0.666
        }