Skip to content

Draft: Fix ToolButton text clipping when an icon is present

ivan tkachenko requested to merge work/ratijas/fix-toolbutton-text-clip into master

Apparently FontMetrics::size calculations are out of line with what a painter actually draws on screen. This is less noticeable with our default Noto Sans font, but way more prominent with a certain fruit font.

Draft because hardcoding a random width increment is obviously NOT the right solution.

Before After
Screenshot_20240511_020926 Screenshot_20240511_021037
Screenshot_20240511_021220 Screenshot_20240511_021151

My font settings other than actual fonts:

image

Merge request reports

Loading