Qalculate / qalculate-gtk

Qalculate! GTK+ UI
https://qalculate.github.io/
GNU General Public License v2.0
976 stars 72 forks source link

Oversized subscripts/superscripts #550

Closed BouncyMaster closed 1 month ago

BouncyMaster commented 1 month ago

Superscript rendering: image

Subscript rendering: image

OS: Linux (Wayland) Versions affected: 5.2.0, master

Additional info: Weirdly, I have another machine with a similar configuration, where this issue is not present.

I have noticed that issue #535 is somewhat similar to this one, with a referenced commit b876a1eebe6540c5de9bc3bb81a970cad2126aa2. I have tried building the tree prior to this commit, but the issue is still present.

hanna-kn commented 1 month ago

I'm not able to reproduce this issue. Please provide more details (Gtk and Pango version, font, scaling, theme, desktop environment, Linux distribution).

Are superscripts displayed properly in other parts of the UI (e.g. history, completion list)?

BouncyMaster commented 1 month ago

This turned out to be caused by fontconfig being compiled with link-time optimizations (-flto) on Gentoo. Disabling this optimization fixes the rendering issue. Will report this upstream to Gentoo.

thesamesam commented 1 month ago

To close the loop on this, OP reported it to Gentoo at https://bugs.gentoo.org/940923, and I've sent a patch to fontconfig at https://gitlab.freedesktop.org/fontconfig/fontconfig/-/merge_requests/333.