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

List:       pykde
Subject:    Re: [PyQt] PyQt5 + AppImage
From:       Barry Scott <barry () barrys-emacs ! org>
Date:       2017-07-12 9:22:42
Message-ID: 873A880E-86F1-4AF7-938A-C7EECD1D111F () barrys-emacs ! org
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


> On 7 Jul 2017, at 20:14, Damon Lynch <damonlynch@gmail.com> wrote:
> 
> On Fri, Jul 7, 2017 at 5:58 AM, Kyle Altendorf <sda@fstab.net \
> <mailto:sda@fstab.net>> wrote: On 2017-07-06 23:18, Damon Lynch wrote:
> 
> 
> > * The font may not be aliased.
> > * The font may be a serif font, instead of sans serif.
> 
> Those seem like reasonable things to vary per distribution, or even just by user \
> settings.  Are you saying that they vary but do not actually match the distribution \
> defaults?  Or, are you wanting to override all distribution and user settings and \
> force your application to look 'consistent' with itself instead of fitting in? 
> 
> To clarify, the font problem is that when running as an AppImage, the fonts do not \
> look the same as when the same application runs in the same distribution for the \
> same user when that application is installed with pip.  
> In other words, the pip installed version looks great, but the AppImage one can \
> look awful and very much out of place. Here is a composite image (43 kB) that \
> illustrates the problem on two different distros: 
> http://damonlynch.net/rapid/screenshots/beta/appimage-font-problem.png \
> <http://damonlynch.net/rapid/screenshots/beta/appimage-font-problem.png>

What I think I see is that the font is not the same in each case.
Are you bundling the font to be used?
Maybe fontconfig is using a fallback to replace a missing font?

Barry

> 
> The image illustrates that with the first distro, the AppImage font changes to a \
> serif font, which is wrong. 
> With respect to Simon's point about the legality of font aliasing, it's entirely \
> possible I'm using the wrong terminology for what I thought was aliasing. Perhaps \
> the correct term is hinting? In any case, as can be seen in the second pair of \
> images, the hinting / aliasing is different in the AppImage. I suspect the first \
> pair of images also have the same hinting / aliasing problem. 
> Although the distributions are different (Fedora and Ubuntu derived respectively), \
> that's not the determining factor, as an AppImage in Kubuntu looks like it does in \
> the Korora install. 
> Best,
> Damon
> -- 
> http://www.damonlynch.net \
> <http://www.damonlynch.net/>_______________________________________________ PyQt \
> mailing list    PyQt@riverbankcomputing.com \
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt


[Attachment #5 (unknown)]

<html><head><meta http-equiv="Content-Type" content="text/html \
charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: \
space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote \
type="cite" class=""><div class="">On 7 Jul 2017, at 20:14, Damon Lynch &lt;<a \
href="mailto:damonlynch@gmail.com" class="">damonlynch@gmail.com</a>&gt; \
wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" \
class=""><div class="gmail_extra"><div class="gmail_quote">On Fri, Jul 7, 2017 at \
5:58 AM, Kyle Altendorf <span dir="ltr" class="">&lt;<a href="mailto:sda@fstab.net" \
target="_blank" class="">sda@fstab.net</a>&gt;</span> wrote:<br class=""><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div style="font-size:10pt" class=""><span \
class="gmail-"><p class=""><span \
class="">On&nbsp;2017-07-06&nbsp;23:18,&nbsp;Damon&nbsp;<wbr \
class="">Lynch&nbsp;wrote:</span><br class=""><br class=""></p> </span><blockquote \
type="cite" style="padding:0px 0.4em;border-left:2px solid rgb(16,16,255);margin:0px" \
class=""><span class="">*&nbsp;The&nbsp;font&nbsp;may&nbsp;not&nbsp;be&nbsp;aliased.</span><br \
class=""><span class="">*&nbsp;The&nbsp;font&nbsp;may&nbsp;be&nbsp;a&nbsp;serif&nbsp;<wbr \
class="">font,&nbsp;instead&nbsp;of&nbsp;sans&nbsp;serif.</span></blockquote><span \
class="gmail-"><p class=""><br class=""><span class="">Those seem like reasonable \
things to vary per distribution, or even just by user settings.&nbsp; Are you saying \
that they vary but do not actually match the distribution defaults?&nbsp; Or, are you \
wanting to override all distribution and user settings and force your application to \
look 'consistent' with itself instead of fitting in?</span><br class=""><span \
class=""></span><span class=""></span></p> </span></div></blockquote><div \
class="">&nbsp;</div></div>To clarify, the font problem is that when running as an \
AppImage, the  fonts do not look the same as when the same application runs in the \
same  distribution for the same user when that application is installed with pip. <br \
class=""><br class="">In other  words, the pip installed version looks great, but the \
AppImage one can  look awful and very much out of place. Here is a composite image \
(43 kB) that illustrates the problem on two different distros:<br class=""><br \
class=""><a href="http://damonlynch.net/rapid/screenshots/beta/appimage-font-problem.png" \
class="">http://damonlynch.net/rapid/screenshots/beta/appimage-font-problem.png</a><br \
class=""></div></div></div></blockquote><div><br class=""></div><div>What I think I \
see is that the font is not the same in each case.</div><div>Are you bundling the \
font to be used?</div><div>Maybe fontconfig is using a fallback to replace a missing \
font?</div><div><br class=""></div><div>Barry</div><div><br \
class=""></div><blockquote type="cite" class=""><div class=""><div dir="ltr" \
class=""><div class="gmail_extra"><br class=""></div><div class="gmail_extra">The \
image illustrates that with the first distro, the AppImage font changes to a serif \
font, which is wrong.<br class=""><br class="">With respect to Simon's point about \
the legality of font aliasing, it's  entirely possible I'm using the wrong \
terminology for what I thought was  aliasing. Perhaps the correct term is hinting? In \
any case, as can be  seen in the second pair of images, the hinting / aliasing is \
different  in the AppImage. I suspect the first pair of images also have the same \
hinting / aliasing problem.<br class=""></div><div class="gmail_extra"><br \
clear="all" class=""></div><div class="gmail_extra">Although the distributions are \
different (Fedora and Ubuntu derived respectively), that's not the determining \
factor, as an AppImage in Kubuntu looks like it does in the Korora install.<br \
class=""><br class=""></div><div class="gmail_extra">Best,<br class=""></div><div \
class="gmail_extra">Damon<br class=""></div><div class="gmail_extra">-- <br \
class=""><div class="gmail_signature"><a href="http://www.damonlynch.net/" \
target="_blank" class="">http://www.damonlynch.net</a><div class=""></div><div \
class=""></div><div class=""></div></div> </div></div>
_______________________________________________<br class="">PyQt mailing list \
&nbsp;&nbsp;&nbsp;<a href="mailto:PyQt@riverbankcomputing.com" \
class="">PyQt@riverbankcomputing.com</a><br class=""><a \
href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" \
class="">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></div></blockquote></div><br \
class=""></body></html>


[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

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

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