Package Details: telegram-desktop-userfonts 2.3.2-2

Git Clone URL: https://aur.archlinux.org/telegram-desktop-userfonts.git (read-only, click to copy)
Package Base: telegram-desktop-userfonts
Description: Official Telegram Desktop client, with your fonts as set by fontconfig
Upstream URL: https://desktop.telegram.org/
Licenses: GPL3
Conflicts: telegram-desktop
Provides: telegram-desktop
Submitter: andykluger
Maintainer: andykluger
Last Packager: andykluger
Votes: 1
Popularity: 0.41
First Submitted: 2020-02-20 04:22
Last Updated: 2020-09-03 08:36

Latest Comments

andykluger commented on 2020-08-18 20:29

I haven't built 2.3.0 successfully yet (with either this or the upstream PKGBUILD from community), so let me know if this is good or not on your systems.

My own problems will be updated @ https://bbs.archlinux.org/viewtopic.php?pid=1921391#p1921391

andykluger commented on 2020-06-04 17:23

@htower Thanks for the notification about the 2.1.8 release.

Looks like Arch's latest package is still at 2.1.7, and I might normally wait for that to update first, but that itself got a second release about a week ago with a patch for newer Qt that has been made unnecessary with 2.1.8, so I'll update the package here as soon as I confirm a good build locally.

andykluger commented on 2020-05-10 18:34

If anyone's curious, I've gone back to the hacky method, no patch that breaks with every release to maintain this way. It's working well.

andykluger commented on 2020-04-27 05:38

@ilya-fedin

Thanks, made a new working patch based on your branch!

Let me know if you want to maintain this package.

ilya-fedin commented on 2020-04-27 04:29

@thabulos font size changing is not possible due to custom font rendering. If font size will be changed, text markup will be broken.

andykluger commented on 2020-04-26 20:54

Sorry everyone. I've had a go at updating the patch for the new release, but have not yet been successful.

EDIT: So far I've got mono working, and compilation succeeds. Hopefully will iron the rest out soon.

andykluger commented on 2020-04-19 19:27

@thabulos

I'm not sure. I see

    checkFont.setPixelSize(13);

in lib_ui/ui/style/style_core_font.cpp but that is in a "validation" function, so maybe not relevant.

I see with rg -S 'fontsize(: | =)'

SourceFiles/mainwindow.cpp
882:            fontSize = 8;
884:            fontSize = (cntSize < 2) ? 12 : 12;
886:            fontSize = (cntSize < 2) ? 22 : 22;
931:                            fontSize = (cntSize < 2) ? 11 : ((cntSize < 3) ? 11 : 8);
933:                            fontSize = (cntSize < 2) ? 14 : ((cntSize < 3) ? 13 : 10);
935:                            fontSize = (cntSize < 2) ? 17 : ((cntSize < 3) ? 16 : 12);
937:                            fontSize = (cntSize < 2) ? 22 : ((cntSize < 3) ? 20 : 16);

lib_ui/ui/basic.style
31:boxFontSize: 14px;

SourceFiles/ui/empty_userpic.cpp
125:    const auto fontsize = (size * 13) / 33;

codegen/codegen/emoji/generator.cpp
199:constexpr auto kEmojiFontSize = 72;
206:    constexpr auto kLargeEmojiFontSize = 180;

SourceFiles/window/themes/window_theme_preview.cpp
896:            auto fontsize = (st::dialogsPhotoSize * 13) / 33;

So I'd guess we can start messing with this block in SourceFiles/mainwindow.cpp:

    880     int32 fontSize;
    881     if (size == 16) {
    882         fontSize = 8;
    883     } else if (size == 32) {
    884         fontSize = (cntSize < 2) ? 12 : 12;
    885     } else {
    886         fontSize = (cntSize < 2) ? 22 : 22;
    887     }

thabulos commented on 2020-04-19 00:31

Hi @andykluger, I installed your package and would like to know how I can make the font bigger? I don't want to scale it up like the native dekstop app, just the font. Thanks!