<table><tr><td style="">kfunk created this revision.<br />Herald added a project: KDevelop.<br />Herald added a subscriber: kdevelop-devel.<br />kfunk 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/D16893">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The bundled libfontconfig seems to cause problems when the target system uses<br />
a newer font config format. See discussion here:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">https://mail.kde.org/pipermail/kdevelop/2018-October/019726.html</pre></div>

<p>It seems to be a common problem (as seen in bug reports of other AppImage<br />
projects).</p>

<p>It's also blacklisted in linuxdeployqt:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">https://github.com/AppImage/AppImages/blob/master/excludelist</pre></div>

<p>For me locally, after the change I also have the exact same font appearance<br />
as with native applications. Before the patch the fonts did use my<br />
anti-aliasing settings iiuc. Before the patch, running the AppImage resulted<br />
in lots of warnings:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">Fontconfig warning: line 5: unknown element "its:rules"
Fontconfig warning: line 6: unknown element "its:translateRule"
Fontconfig warning: line 9: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: unknown element "its:translateRule"
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 8: unknown element "description"
...</pre></div>

<p>... these warnings are now gone.</p>

<p>Thanks for the analysis by Friedrich.</p>

<p>Actually easy to test using the new AppImage format. Just do:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">./KDevelop-5.3.0-x86_64.AppImage --appimage-extract
cd squashfs-root
./AppRun # to check appearance before
rm rm usr/lib/libfontconfig.so.1
./AppRun # to check appearance after rm'ing the lib</pre></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>BRANCH</strong><div><div>5.3</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D16893">https://phabricator.kde.org/D16893</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>appimage/kdevelop-recipe-centos6.sh</div></div></div><br /><div><strong>To: </strong>kfunk<br /><strong>Cc: </strong>kdevelop-devel, glebaccon, antismap, iodelay, vbspam, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd<br /></div>