Bug 400254

Summary: Allow pixel font sizes in text tool
Product: [Applications] krita Reporter: Alex Gleason <alex>
Component: Tool/TextAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: halla
Priority: NOR    
Version First Reported In: 4.1.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: (left) 8px font in Gimp, (right) 6pt font in Krita

Description Alex Gleason 2018-10-24 16:12:48 UTC
SUMMARY


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Alex Gleason 2018-10-24 16:13:46 UTC
So sorry, I was trying to search for existing issues and accidentally hit enter. Editing my post, but the tl;dr is that very small pixel fonts (eg 8px) don't seem possible to create with Krita's text tool.
Comment 2 Alex Gleason 2018-10-24 16:20:03 UTC
SUMMARY

The text tool supports only points (pt) units, which is not suitable for pixel fonts that need to be rendered at a specific pixel size. In addition, there seems to be a strict minimum of 6pt that cannot be crossed.

STEPS TO REPRODUCE
1. Install a pixel font such as Minecraftia.
2. Create a new SVG text layer using that font.
3. The font is designed for 8px, which cannot be set with the text tool.

OBSERVED RESULT

The text is too large, blurry, and cannot be shrunk.


EXPECTED RESULT

The text can be set to 8px size and renders crisply.


SOFTWARE VERSIONS
Krita
  Version: 4.1.5

Qt
  Version (compiled): 5.11.2
  Version (loaded): 5.11.2

OS Information
  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 4.15.0-36-generic
  Pretty Productname: Linux 4.15.0-36-generic
  Product Type: org.kde.Platform
  Product Version: master

OpenGL Info
  **OpenGL not initialized**
Comment 3 Halla Rempt 2018-10-25 15:22:54 UTC
Um... Working in points is what we intended. And since we render through Qt's font engine, I doubt that really small pixel fonts will actually work well in any case.
Comment 4 Alex Gleason 2018-10-25 15:36:22 UTC
Created attachment 115895 [details]
(left) 8px font in Gimp, (right) 6pt font in Krita

Points is fine, but Krita cannot go below 6pt. The font must be 8px, so it needs 1.9pt. I'm not sure it will still be blurry if rendered at the appropriate size?

I'm using Krita to create pixel art for a low-resolution 2D video game. I works wonderfully with the preset pixel brush tools for drawing art, but cannot handle text very well for this purpose. Sadly ORA doesn't support text. My workflow is to export an ORA without text, open with GIMP to create text. Convert text to raster, save as ORA, and reopen in Krita to continue drawing.
Comment 5 Halla Rempt 2018-10-30 13:58:59 UTC
Um, but you can go below 6pt, by editing the contents of the combobox, you're not limited to the sizes in the combobox. Doesn't that work for you?
Comment 6 Alex Gleason 2018-11-04 18:36:05 UTC
You're right. If I edit the SVG form I can set a value less than 6pt. It still appears blurry, but the size is correct. Sorry about that.