post by forestbeasts on Oct 14, 2024

Bitmap fonts have been broken for a while now. This is a problem, as they’re incredibly useful for pixel art.

It sounds like the text tool is fundamentally built around vector fonts, the libraries it uses for text rendering don’t even try to support bitmap fonts, and the fact that it worked at all in the past was more or less an accident.

But bitmap fonts are simple!! They’re basically a grid of pixels with none of the layout complexity of vector fonts! So how hard would it be to make a dedicated Bitmap Text Tool?

I’m vaguely considering diving into the code and trying to build this. It might be easier than trying to fix the existing Text Tool, but I don’t know if it’s the way to go or if anyone else would even appreciate the work anyway.

– Frost

post by wolthera on Oct 14, 2024

Actually, bitmap fonts should work again, Alvin and me tried to make sure it worked, at the least, and this was done with an eye on both emoji as well as font-hinting necessary for CJK fonts. Though, the default fontconfig on many systems will hide the bitmap formats and only show vector formats.

Text tool is currently being rewritten, as it happens, I am currently fighting fonts, though right now I’m getting myself kicked by the UI code, so that’s been slow. You can try to play with the latest nightly to see bitmap fonts working.

post by forestbeasts on Oct 15, 2024

Oh, sweet!! I looked in stable a few months ago, but didn’t think to look in the recent nightlies. Definitely gonna have to try that out, thanks!

2 years later

post by forestbeasts on Jul 15

…Hm, couple years later on Krita 5.3.2.1 (from Debian) and it seems like bitmap fonts still don’t work. They show up in the list, but don’t actually render as themselves, it’s just the fallback font. Still antialiased, too. Turning off the vector layer antialiasing setting does remove the antialiasing, but makes it look awful because it’s not actually caring about the pixel grid when it does the font layout.

It’d be nice to fix the text tool. I worry it’ll just get broken in another year though when people forget that un-antialiased bitmap fonts exist and “improve” the text tool again. But yeah.

post by wolthera on Jul 15

I explicitely did implement support for it, so there must be something else going on on your system. Try using text-rendering property instead of vector layer anti-aliasing. You will also want to make sure that the text is moved so it aligns with the pixel grid, you can use snapping->pixel for this, and then move it with the text tool.

post by forestbeasts on Jul 15

post by wolthera on Jul 15

post by forestbeasts on Jul 15

post by wolthera on Jul 15

post by forestbeasts on Jul 15


Powered by Discourse