Skip to content

Bug: freetype rendering much worse #244

@phraktle

Description

@phraktle

Version

1.86.12

What happened?

After upgrading to 1.86.12 (appreciate the work on the library again!), font rendering became markedly worse. This can be attributed to freetype, which actually seems to yield worse results despite my efforts to adjust hinting flags.

rendering with 1.86.11:
sbt

rendering with 1.86.12:
freetype

Not sure if there are any flags I can set to make it look okay – if not, it would be great to have a distribution without freetype.

Reproduction

var font = "/System/Library/Fonts/SFNSMono.ttf";
var fonts = ImGui.getIO().getFonts();
var cfg = new ImFontConfig();
cfg.setOversampleH(3);
cfg.setOversampleV(3);
cfg.setRasterizerMultiply(2f);
cfg.setPixelSnapH(true);
fonts.addFontFromFileTTF(font, 14, cfg);

Relevant log output

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions