artemsen / swayimg

Image viewer for Wayland
MIT License
350 stars 27 forks source link

Text cut off and glyphs don't display #156

Closed g-rden closed 2 months ago

g-rden commented 2 months ago

With smaller font size <= 12pt text is cropped. Some glyphs don't display, no matter the font size, but happens more if the size is smaller.

fira 9pt: crop it should be

File name    check.png
Image format PNG 32bit
File size    0.21 KiB
Image size   100x100

Skipping glyphs is caused by this being true x + bmp->width >= surface->width

I tried fixing it, but I can't. Some font, size or on a different OS (most likely the difference in specific font provided) is always messed up in some way.

artemsen commented 2 months ago

I'm tired of font errors... Perhaps it's time to return to pango.