<table><tr><td style="">thomasfischer created this revision.<br />thomasfischer requested review of this revision.
</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/D26288">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>File <tt style="background: #ebebeb; font-size: 13px;">src/manager/walletwidget.ui</tt> specifies font "Monospace" to use for showing passwords. However, in case there is a font called "Monospace" installed on the system, this will be used instead of the default/system fixed-width font. If the "Monospace" font is broken or rendered incorrectly, passwords cannot be read from within the wallet manager.</p>

<p>To fix this problem, set a fixed font in C++ code by invoking <tt style="background: #ebebeb; font-size: 13px;">setFont(QFontDatabase::systemFont(QFontDatabase::FixedFont))</tt> which uses the fixed-width font as configured by the user.</p></div></div><br /><div><strong>TEST PLAN</strong><div><ol class="remarkup-list">
<li class="remarkup-list-item">Get a font called "Monospace" which is not your default fixed-width font. Observe that this font is used to show passwords</li>
<li class="remarkup-list-item">Apply patch, recompile and restart KWalletManager</li>
<li class="remarkup-list-item">Observe that the correct fixed-width font is used</li>
</ol></div></div><br /><div><strong>REPOSITORY</strong><div><div>R362 KWalletManager</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D26288">https://phabricator.kde.org/D26288</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/manager/kwalleteditor.cpp<br />
src/manager/walletwidget.ui</div></div></div><br /><div><strong>To: </strong>thomasfischer<br /><strong>Cc: </strong>kde-utils-devel<br /></div>