CoatiSoftware / Sourcetrail

Sourcetrail - free and open-source interactive source explorer
https://www.sourcetrail.com/
GNU General Public License v3.0
14.93k stars 1.41k forks source link

Font face list is unnecessary wide #1083

Open tiendq opened 4 years ago

tiendq commented 4 years ago

Select Preferences menu, then click on Font Face select box.

Issue: font list is too big, almost double needed space for the longest font name in the list.

Expectation: font list width is same as select box.

macOS 10.15.6 Clang: 1103.0.32.62 Sourcetrail 2020.2.43

tiendq commented 4 years ago

I think this issue is related with this debug message "Failed to compute left/right minimum bearings for "GB18030 Bitmap"", it appears when I click on the font list.

mlangkabel commented 4 years ago

Hm, I think I can reproduce this on Windows. Will take a look.

mlangkabel commented 4 years ago

For testing I removed all fonts that cause this debug message. But the dropdown width was still off by a certain factor. If I decrease the width of the combobox, the width of the dropdown also decreases, but the factor always stays the same.