<table><tr><td style="">ahmadsamir updated this revision to Diff 77442.<br />ahmadsamir retitled this revision from "[Fonts KCM] Change setNearestExistingFonts() to set the fonts only when necessary" to "[Fonts KCM] Change how nearestExistingFonts() finds a matching font".<br />ahmadsamir edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-ua6gf3ll6blhwvb/">(Show Details)</a><br />ahmadsamir removed a subscriber: bport.<br />ahmadsamir 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/D27785">View Revision</a></tr></table><br /><div><div><p>Rebase<br />
Actually address comments</p></div></div><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><div style="padding: 8px 0;">...</div>is "Regular|Normal|Book|Roman".<br />
<br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">Change setNearestExistingFonts() to set the fonts only if nearestExistingFont()<br />
returns a different font.<br />
<br />
Also remove setNeedsSave(false) from load() method, doesn't seem to be needed<br />
any more (Partially reverting commit 0c4da0774e4388b6937b).<br />
<br />
[Fonts KCM] Port KFontDialog/KFontChooser to QFontDialog<br />
<br />
QFontDialog doesn't have the capability that KFontDialog had, where with<br />
the latter when using adjustAllFonts() you could change only one of</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Due to the change to clear font styleName property when saving via</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">the font family, the font style, the font size</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">KConfig (D27735)</span>, <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">e.g.</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">if in kdegloblas</span> you <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">could change</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">removed the ",Regular|Normal|Book|Roman"</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">the size and keep each respective </span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">from the end of the *</span>font<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);"> families for "General" and "Toolbar" as is.<br />
<br />
When using ajustAllFonts()</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">*= entries</span>, <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">try to set</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">openin</span> the f<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">ixed width/Monospace font</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">ont selection dialog</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">from</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">in</span> the <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">font family the user ha</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">KCM, the very first style i</span>s selected,<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> not "Regular" and co.</span> <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">otherwise fallback to whatever</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">as</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">QFontDatabase::systemFont(QFontDatabase::FixedFont) gets.<br />
<br />
Depends on D27785</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">it should be. This will be addressed in an upcoming diff.</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R119 Plasma Desktop</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D27785?vs=77268&id=77442">https://phabricator.kde.org/D27785?vs=77268&id=77442</a></div></div><br /><div><strong>BRANCH</strong><div><div>arcpatch-D27785 (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D27785">https://phabricator.kde.org/D27785</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kcms/fonts/fonts.cpp</div></div></div><br /><div><strong>To: </strong>ahmadsamir, Plasma, davidedmundson, broulik, ervin, meven<br /><strong>Cc: </strong>plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart, bport<br /></div>