https://bugs.kde.org/show_bug.cgi?id=378523

--- Comment #78 from RJVB <rjvber...@gmail.com> ---
I should have seen the Phab PR above or at least the previous comment, but
somehow didn't.

Why only strip the Regular styleName? The property is redundant at best and I
think that the synthetic font argument applies to other styles as well. As an
example: I use a Semi-Bold typeface in many cases (including as GUI font)
because the corresponding regular is too light. Software emboldening of a
semi-bold will )probably) not give an inferior quality bold typeface but
something heavier (semi-extra-bold?).

I would argue that code shouldn't have to strip redundant properties but should
rather have to make some extra calls in order to obtain them -
QFontInfo::styleName() in this case. I know that QFontDialog() will return
fonts that have the styleName set ... but the goal of the KFont* APIs is to
improve on what Qt has to offer, no?

On a related note: wouldn't it be possible to obtain a QFont that has never had
the styleName property set internally, and then add it, rather than depend on
being able to strip it?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to