[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    D9070: KDE platform plugin: don't force default stylename on user-specified fonts
From:       René J.V. Bertin <noreply () phabricator ! kde ! org>
Date:       2017-11-30 17:53:06
Message-ID: 20171130175305.25684.E4DF84C8B1B004FC () phabricator ! kde ! org
[Download RAW message or body]

rjvbb added a comment.


  It depends a little bit what kind of call you make. But yes, certain "conflicting" \
attributes can no longer be set. A particular example reported by many is setting \
bold. If you do `setStyleName("Regular")` on a Qfont, `setBold(true)` will no longer \
have the intended effect, or possibly not the same effect (apparently you can also \
end up with an emboldened version of the font, rather than with the actual bold \
version).  
  Have you ever worked with professional typesetting, drawing of page-layout \
applications like InDesign or Illustrator? There you don't set a font to bold, you \
select another typeface from among the ones you have installed. This is of course how \
fonts are designed and implemented but most of expect that "old-fashioned \
inconvenience" to be hidden. IOW, flip a font to bold by hitting Ctrl-B and you get \
"Foo Bold" rather than "Foo Regular-or-Whatever-you-had turned into something looking \
bold". Calling `setStyleName()` brings back a bit of that old-fashioned "pedantic" \
nature.

REPOSITORY
  R135 Integration for Qt applications in Plasma

REVISION DETAIL
  https://phabricator.kde.org/D9070

To: rjvbb
Cc: fvogt, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, \
abetts, sebas, apol, mart


[Attachment #3 (unknown)]

<table><tr><td style="">rjvbb added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: \
right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: \
#F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: \
inline-block; border: 1px solid rgba(71,87,120,.2);" \
href="https://phabricator.kde.org/D9070" rel="noreferrer">View \
Revision</a></tr></table><br /><div><div><p>It depends a little bit what kind of call \
you make. But yes, certain &quot;conflicting&quot; attributes can no longer be set. A \
particular example reported by many is setting bold. If you do <tt style="background: \
#ebebeb; font-size: 13px;">setStyleName(&quot;Regular&quot;)</tt> on a Qfont, <tt \
style="background: #ebebeb; font-size: 13px;">setBold(true)</tt> will no longer have \
the intended effect, or possibly not the same effect (apparently you can also end up \
with an emboldened version of the font, rather than with the actual bold \
version).</p>

<p>Have you ever worked with professional typesetting, drawing of page-layout \
applications like InDesign or Illustrator? There you don&#039;t set a font to bold, \
you select another typeface from among the ones you have installed. This is of course \
how fonts are designed and implemented but most of expect that &quot;old-fashioned \
inconvenience&quot; to be hidden. IOW, flip a font to bold by hitting Ctrl-B and you \
get &quot;Foo Bold&quot; rather than &quot;Foo Regular-or-Whatever-you-had turned \
into something looking bold&quot;. Calling <tt style="background: #ebebeb; font-size: \
13px;">setStyleName()</tt> brings back a bit of that old-fashioned \
&quot;pedantic&quot; nature.</p></div></div><br \
/><div><strong>REPOSITORY</strong><div><div>R135 Integration for Qt applications in \
Plasma</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a \
href="https://phabricator.kde.org/D9070" \
rel="noreferrer">https://phabricator.kde.org/D9070</a></div></div><br \
/><div><strong>To: </strong>rjvbb<br /><strong>Cc: </strong>fvogt, plasma-devel, \
ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, \
mart<br /></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic