+ 2

Is it possible to create a font that has all symbols with dimension 1x1 pixel?

I create a game in C language (Pacman). I run the executable on the Windows prompt, so the terminal display has at maximum 1360x768 pixels available (as my display resolution) . A char symbol has its own dimension in pixels, and minimum useful dimension that i found, is 3x6pixels (width x height). I'm saying 'useful' because these two numbers have a good ratio, so i just double the width (placing two simbols close togheter) to obtain a nice 6x6 square symbol. I don't care what symbol i print on the output of terminal display, because i have a function that 'colors' the whole symbol that i print (for example, if i print 'aa', the result on output is a 6x6 colored square). Here is the problem...if each colored square has a 6x6 pixels dimension and my terminal display is 1360x768, i have only 226x128 colored squares available (1360/6 x 768/6) and it is an inadequate number to make the graphics enjoyable while playing. (Pacman recommended resolution is 224x288). So my aim is to reduce my 6x6 colored square as much as possible. Does any of you have any idea? My idea is to create a font with all 1x1 symbols(if it possible), and add it in the window registry editor(together with the other fonts) but it seems complicated. So i accept any idea or suggestion to solve the problem, or a new point of view to approach the problem. Thank you for reading this far ^^

4th Dec 2018, 1:45 AM
Stefano Ciaprini
Stefano Ciaprini - avatar
1 Antwort
+ 3
i don't have any experience with C, but I think if you could embeed your own font, you could create a font, where a is shown as (X=white, _= black) X__ ___ ___ ___ ___ ___ and b is XX_ ___ ___ ___ ___ ___ So whith that you could make every combination this would need 524'288 different characters for every combination one. (a little bit too much?) you would have to display 'aceifbaoco' for a picture with the dimensions of 6x30 I hope you understood what i ment
13th Mar 2019, 5:40 AM
ttschnz
ttschnz - avatar