Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to increase resolution of font? #6

Closed
codex-hex opened this issue Jul 21, 2018 · 3 comments
Closed

How to increase resolution of font? #6

codex-hex opened this issue Jul 21, 2018 · 3 comments
Labels
question Further information is requested wontfix This will not be worked on

Comments

@codex-hex
Copy link

İ appreciate your effort, is there any way to increase font resolution or antialising?(sorry for my bad english)

@NiLuJe
Copy link
Owner

NiLuJe commented Jul 21, 2018

No, it's a bitmap font, that's the whole point ;). You can only scale it up, nearest-pixel style.

If someone cares enough, the basics should be there to do something more complex, either via FreeType directly, or perhaps more easily with stb_truetype, but it risks getting somewhat complex real fast if you want to do better than just saying "start painting at these coordinates and hope for the best".
You can bypass some of the hassle by assuming you'll only ever use monospaced fonts, but, still, it's somewhat more complex than a good old dumb bitmap font where everything fits in the same block size, always ;).

@NiLuJe
Copy link
Owner

NiLuJe commented Jul 21, 2018

And if you were thinking of the other, slightly more awful solution, namely generating a whole new set of higher resolution bitmap glyphs, well, first: good luck :D.

And second: don't bother, the renderer only deals with black & white pixels, no in-between (i.e., no AA).

@NiLuJe NiLuJe added question Further information is requested wontfix This will not be worked on labels Jul 21, 2018
@NiLuJe NiLuJe closed this as completed Jul 21, 2018
@NiLuJe
Copy link
Owner

NiLuJe commented Jul 21, 2018

It's also somewhat out of (my) original scope: it already looks & behaves much, much, much better than whatever I might have hoped for when I started working on this.

This statement probably makes more sense for someone familiar with eips on Kindles ;).


I'd go so far as to say that the retro aspect is kind of a selling point :D.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants