<table><tr><td style="">davidedmundson 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/D23257">View Revision</a></tr></table><br /><div><div><p>We have a mixture of two things.</p>
<p>Here we have a serialised QFont</p>
<p>stored as<br />
font=Lato,11,-1,5,50,0,0,0,0,0,Regular</p>
<p>using these magic methods:<br />
QDataStream &QFont::operator<<(QDataStream &s, const QFont &font)</p>
<p>That tell other code how to turn a QFont object into a string and back. Including family, italics, size, etc.</p>
<p>In the SDDM PR we load that big text as a string, which won't go via that.</p>
<p>We're then using this constructor<br />
QFont(const QString &family, int pointSize = -1, int weight = -1, bool italic = false)</p>
<hr class="remarkup-hr" />
<p>Either SDDM code should deserialize the font (so that the italics and sizes and such work)<br />
Or this code should only write the family name.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R123 SDDM Configuration Panel (KCM)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D23257">https://phabricator.kde.org/D23257</a></div></div><br /><div><strong>To: </strong>filipf, ngraham, Plasma, davidedmundson<br /><strong>Cc: </strong>plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>