Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.12.2
-
None
Description
There seems to be a "feature" of QtFontDialog in that it tries to maintain similar styles as one selects different fonts. Say that Font A has styles Normal and Italic and Font B has styles Regular and Oblique. Select Font B and style Regular and then select Font A and Italic will be selected. This is true with Normal/Regular, too. This is true regardless of the order of the styles, the number of the styles, or the position of the style.
However, failing an association between available styles, the top-most option is selected. Let's say you have Font C which only has styles Roman and Bold and Font D that has styles Italic and Regular (both in that respective order). Select Font C and Bold and then select Font D and you have Italics.
Though this smart selection is beneficial when styles match, when they don't, it can be very disconcerting to suddenly have a style you don't want to have. That said, I think it would actually be less shocking (at least it would be more intuitive) if the selected style was always the top-most style.
I haven't checked, but I suspect this is probably true for sizes, too.
P.S. Originally reported as a downstream bug in LXQt until it became apparent this was an issue with Qt itself.