Author Topic: Cropped text in filter list  (Read 75 times)

bugreport

  • Newbie
  • *
  • Posts: 2
Cropped text in filter list
« on: April 21, 2017, 04:49:49 PM »
avidemux_2.7.0_r170420_win64.exe:
1. Open some video file.
2. Select codec (ex. x264).
3. Open filter list.
4. Observe cropped text.

Screenshot attached.

OS: Win7SP1x64, Language: Russian

eumagga0x2a

  • Hero Member
  • *****
  • Posts: 994
Re: Cropped text in filter list
« Reply #1 on: April 21, 2017, 06:22:12 PM »
Please specify which font settings you use.

bugreport

  • Newbie
  • *
  • Posts: 2
Re: Cropped text in filter list
« Reply #2 on: April 22, 2017, 04:29:39 AM »
Please specify which font settings you use.
What exactly do you mean?
I can't find font settings in Avidemux.

Maybe you are talking about system DPI settings?
In this case, the setting is 100% scale.
My monitor is not HiDPI (1280x1024), so Windows automatically selected this option.

eumagga0x2a

  • Hero Member
  • *****
  • Posts: 994
Re: Cropped text in filter list
« Reply #3 on: April 22, 2017, 06:34:22 AM »
Please specify which font settings you use.
Maybe you are talking about system DPI settings?

Exactly.

Quote
In this case, the setting is 100% scale.
My monitor is not HiDPI (1280x1024), so Windows automatically selected this option.

Meanwhile I could reproduce the issue which infamously striked at some DPI values but not at others, additionally depending on the language, and pushed a workaround adding 6px to the filter list items' height.

The underlying problem is the usage of QFontMetrics::boundingRect which seems not to take varying font sizes specified by the rendered string into account.

Thank you for your report.