Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715116 - net-im/telegram-desktop-1.9.21 has smaller font size & line height in chat window than net-im/telegram-desktop-bin-1.9.21
Summary: net-im/telegram-desktop-1.9.21 has smaller font size & line height in chat wi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-28 01:53 UTC by Dmitry Grigoriev
Modified: 2021-04-17 14:20 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge--info.txt,6.23 KB, text/plain)
2020-03-28 01:53 UTC, Dmitry Grigoriev
Details
telegram-desktop-fontsize.png (telegram-desktop-fontsize.png,120.99 KB, image/png)
2020-03-28 01:54 UTC, Dmitry Grigoriev
Details
telegram-desktop-bin-fontsize.png (telegram-desktop-bin-fontsize.png,115.67 KB, image/png)
2020-03-28 01:55 UTC, Dmitry Grigoriev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Grigoriev 2020-03-28 01:53:05 UTC
Telegram-desktop-bin's font size is too small on its own, there are lots of questions on the internet how to increase it. But telegram-desktop (non-bin) is almost unusable. See attached screenshots.

This has nothing to do with settings: (1) there's no such setting; (2) I switched from bin to non-bin and back twice, without backing up neither .config nor anything else. Problem remains.

Haven't tried previous non-bin version(s).

Reproducible: Always
Comment 1 Dmitry Grigoriev 2020-03-28 01:53:33 UTC
Created attachment 626476 [details]
emerge --info
Comment 2 Dmitry Grigoriev 2020-03-28 01:54:49 UTC
Created attachment 626478 [details]
telegram-desktop-fontsize.png
Comment 3 Dmitry Grigoriev 2020-03-28 01:55:20 UTC
Created attachment 626480 [details]
telegram-desktop-bin-fontsize.png
Comment 4 Henning Schild 2020-03-29 15:00:45 UTC
The two use different versions of Qt, that likely explains why they look different.

I am not really sure what your issue really is. The fact they the two look different is "normal". It is in the nature of how they are built.

If you find one or both unusable you can try playing with the "interface size" setting. Or you could change the settings of your window manager, looking at the window title it seems like such "small" fonts are something your system uses.

You could also compare it other Qt applications. I am not really sure what to do about the issue. Maybe you can explain it a little bit more, which WM, which font sizes you have configured / DPI. How those fonts in telegram compare to other applications, other Qt applications.
Comment 5 Georgy Yakovlev archtester gentoo-dev 2020-03-29 19:57:10 UTC
I agree, both versions are too different.
-bin builds with older QT, older everything, also bundles own version of Open Sans font (https://github.com/desktop-app/lib_ui/tree/master/fonts).

You should try to ask telegram developers to finally implement font customization options instead.


another thing to try:

edit ebuild and add that line
-DDESKTOP_APP_USE_PACKAGED_FONTS=OFF

right after 
-DDESKTOP_APP_USE_PACKAGED=ON
line

this should make telegram use bundled fonts. not sure if it will help though. if using bundled fonts does not help it means it's the newer QT/libraries.


another option will be tuning fontconfig, it can set font family overrides, but that's out of scope of this  bug. try searching fontconfig font.conf
Comment 6 Dmitry Grigoriev 2020-03-30 10:00:10 UTC
Small font size in window title is from openbox's theme. Everywhere else fonts are no less than on my -bin screenshot.

Will try editing ebuild later.
Comment 7 Shiba 2020-03-31 08:26:06 UTC
Indeed installing media-fonts/open-sans made the text look correct for me.
Comment 8 Dmitry Grigoriev 2020-03-31 08:43:10 UTC
(In reply to Shiba from comment #7)
> Indeed installing media-fonts/open-sans made the text look correct for me.

For me too. Thanks. Maybe this font should be added as dependency?
Comment 9 Georgy Yakovlev archtester gentoo-dev 2020-03-31 09:02:40 UTC
I don't want the package to depend on open-sans, for example on Plasma/KDE installing it makes no difference at all, so there are too many factors involved.

I will add postinst message that mentions open-sans font so if users have problems with fonts they can install the fonts.
Comment 10 Georgy Yakovlev archtester gentoo-dev 2020-03-31 12:50:31 UTC
ok snap version of telegram switched to system-fonts, so I'm adding a dep on open-sans.
old version do not have a dep and will be removed soon-ish.
Comment 11 Larry the Git Cow gentoo-dev 2020-03-31 12:51:03 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39628e0e3568024e992ad74f413c4e596a74fe1c

commit 39628e0e3568024e992ad74f413c4e596a74fe1c
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2020-03-31 12:47:20 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2020-03-31 12:50:54 +0000

    net-im/telegram-desktop: bump to 2.0.1
    
    Bug: https://bugs.gentoo.org/715116
    Package-Manager: Portage-2.3.96, Repoman-2.3.22
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 net-im/telegram-desktop/telegram-desktop-2.0.1.ebuild | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
Comment 12 Dmitry Grigoriev 2020-03-31 20:01:52 UTC
(In reply to Georgy Yakovlev from comment #10)
> ok snap version of telegram switched to system-fonts, so I'm adding a dep on
> open-sans.
> old version do not have a dep and will be removed soon-ish.

Thank you. I see it in telegram-desktop-2.0.1.
Comment 13 Henning Schild 2020-04-03 05:55:07 UTC
https://github.com/gentoo/gentoo/pull/15210

Also bumping the -bin to 2.0.1. The release notes mention a fonts related fix for Linux, did not look at what actually changed there.
Comment 14 Georgy Yakovlev archtester gentoo-dev 2020-04-03 07:24:19 UTC
(In reply to Henning Schild from comment #13)
> https://github.com/gentoo/gentoo/pull/15210
> 
> Also bumping the -bin to 2.0.1. The release notes mention a fonts related
> fix for Linux, did not look at what actually changed there.

I think nothing changed for -bin, still using bundled files.
the snapcraft one switched to system fonts.
but I'm not 100% sure.
Comment 15 Larry the Git Cow gentoo-dev 2020-04-20 17:59:37 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27066e9e536d11339d965c14e7a3cd4046edbd88

commit 27066e9e536d11339d965c14e7a3cd4046edbd88
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2020-04-20 17:16:05 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2020-04-20 17:59:14 +0000

    net-im/telegram-desktop: revbump 2.0.1, clarify dependencies
    
    rework deps a bit
    add py3.8
    split X and wayland
    
    Closes: https://bugs.gentoo.org/716844
    Closes: https://bugs.gentoo.org/715116
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 .../telegram-desktop-2.0.1-r1.ebuild               | 134 +++++++++++++++++++++
 1 file changed, 134 insertions(+)