Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow user to choose font and font size #90

Open
Katzen-Gott opened this issue Aug 1, 2014 · 78 comments
Open

Allow user to choose font and font size #90

Katzen-Gott opened this issue Aug 1, 2014 · 78 comments

Comments

@Katzen-Gott
Copy link

It would be cool if user could choose fonts for conversations (and even 20% cooler if telegram would use system-default fonts)

@solf
Copy link

solf commented Sep 23, 2014

Please add this... current font looks awful and is mostly unusable when Font Smoothing is off.

@AlexanderBelokon
Copy link

👍 without monospaced fonts it's really impossible to use for programming-related discussions

@matteodellamico
Copy link

Yes, please. The font looks horrible here (Ubuntu 14.10).

@marco-solare
Copy link

what about a textual prefix like ` or a mode triggered by a button to temporarily switch to a monospaced font for sending code (related) stuff?

@iivmok
Copy link

iivmok commented Aug 28, 2015

👍 Please oh please.

@Konekokonut
Copy link

Oh please oh please.

@dnmr
Copy link

dnmr commented Aug 29, 2015

Yes please.

@auchri auchri changed the title [Feature request] Allow user to choose fonts [Feature request] Allow user to choose font and font size Aug 29, 2015
@deconstruction
Copy link

Much needed. Very important.

@mr-love
Copy link

mr-love commented Nov 1, 2015

The tilde ~ looks like a dash... one of many small gripes about the default font so 👍

@telegramdesktop
Copy link
Collaborator

@mark-love It is not anymore in the latest dev release :) Will be in the stable in a week or two.

@neesti
Copy link

neesti commented Nov 2, 2015

The defulat font of "Telegram Desktop" is not nice and is also small in Persian language texts.

@Mnkai
Copy link

Mnkai commented Nov 5, 2015

This feature is really important - since default font in hidpi setting is way too narrow since it's bitmap font.
Allowing user to select other font properly supporting hidpi will be more feasible.

@SafaAlfulaij
Copy link

@telegramdesktop I'd like to say something cool.
I don't know how it will affect the performance, but you are a great developer 👍
So, what if you used Noto fonts (there are many, not sure how will you package them) and detected the language/script of each character in the chat and then use the suitable font for it? 😇
Or maybe better, implement a font setting dialog to select a different font for each language/script.
Because selecting one font only can cause problems such as bad-looking characters.

@auchri auchri changed the title [Feature request] Allow user to choose font and font size Allow user to choose font and font size Dec 19, 2015
@john-preston
Copy link
Member

Ok, first attempt on font customization is out with 4.16.9 beta version.

@tamr
Copy link

tamr commented Apr 24, 2024

Ok, first attempt on font customization is out with 4.16.9 beta version.

Great. It werks! No more exe patching required, sweet!

@Geobert
Copy link

Geobert commented Apr 24, 2024

This font doesn’t render well https://jacobxperez.github.io/atkinson-hyperlegible-pro/ (Windows)
Telegram_RhUPOHghMw

@ilya-fedin
Copy link
Contributor

@Geobert perhaps you need to enable font smoothing in system settings?

@Geobert
Copy link

Geobert commented Apr 24, 2024

@Geobert perhaps you need to enable font smoothing in system settings?

It is already enabled :)

@ilya-fedin
Copy link
Contributor

@Geobert are you sure? there are multiple settings regarding it... i believe you need to enable cleartype

@ilya-fedin
Copy link
Contributor

ilya-fedin commented Apr 24, 2024

the thing here is that it's Qt who is responsible for font rendering (tdesktop just sends text via QPainter) so it's not possible to do any other than tinkering with system settings.

@Geobert
Copy link

Geobert commented Apr 24, 2024

cttune_8ptIutOQX7
ApplicationFrameHost_n3BctartLg

@ilya-fedin
Copy link
Contributor

@Geobert perhaps you got a Qt bug?

@Geobert
Copy link

Geobert commented Apr 24, 2024

@Geobert perhaps you got a Qt bug?

I’m on Windows, so I use the Qt shipped with Telegram I believe

@ilya-fedin
Copy link
Contributor

I’m on Windows, so I use the Qt shipped with Telegram I believe

Yeah... Although I'm not sure what you wanted to say by that.

@AndydeCleyre
Copy link
Contributor

Ok, first attempt on font customization is out with 4.16.9 beta version.

Is this planned for monospace as well?

@AndydeCleyre
Copy link
Contributor

Is it known whether the monospace fonts will eventually be either user-selectable, or match the system's existing monospace selection? Does this issue cover that, or would a separate issue be appropriate?

@ilya-fedin
Copy link
Contributor

ilya-fedin commented May 24, 2024

Monospace font is whatever Qt thinks the system monospace font since a long time. Except of Windows, where Qt thinks system monospace font is Courier New so Cascadia Mono is requested explicitly.

@AndydeCleyre
Copy link
Contributor

Monospace font is whatever Qt thinks the system monospace font since a long time.

Oh! Any extra steps required to get that working with the flatpak package, in KDE Plasma?

@ilya-fedin
Copy link
Contributor

Oh! Any extra steps required to get that working with the flatpak package, in KDE Plasma?

Oh, afaik KDE/Qt flatpak fonts thing is in the state of lack of interest from KDE/Qt side. GNOME/gtk use their own sandbox friendly way of getting the settings while KDE/Qt uses fontconfig configs which are backward incompatible (a config made for a later fontconfig library version would break previous fontconfig library version) and so aren't sandbox-friendly.

@AndydeCleyre
Copy link
Contributor

Alright, well for anyone else wondering I tried the following without success:

$ cd ~/.var/app/org.telegram.desktop/config
$ ln -s ~/.config/fontconfig/fonts.conf

Then tried the following, also without success:

$ rm ~/.var/app/org.telegram.desktop/config/fonts.conf
$ flatpak --user override --filesystem=$HOME/.config/fontconfig/:ro
$ flatpak --user override --filesystem=$HOME/.local/share/fonts/:ro

@ilya-fedin
Copy link
Contributor

ilya-fedin commented May 24, 2024

Oh, looks like I gave wrong information to you. What is lacking in KDE/Qt case is font hinting and antialiasing settings (which gtk has), monospace font face is supported (stored in KDE configs). It's gtk who doesn't have monospace setting at all (exists only at gnome-terminal level which reads gnome-shell setting) and the Qt patchset changes Qt so it always gets settings from gtk (which leads Qt to read monospace font from fontconfig) as otherwise people report bugs that tdesktop is not adhering their system settings and it's the only feature complete settings backend in Qt. I'm not sure what to do in that case but changing monospace font is not planned AFAIK.

@AndydeCleyre
Copy link
Contributor

OK, is this only an issue for flatpak, or also with native installations, in a KDE Plasma environment?

I had been maintaining custom build scripts for telegram on the AUR for system font support, but removed them when this font support was added. I want to know if I should try resurrecting and maintaining the custom build scripts, but won't bother if the bug only affects flatpak installations.

@ilya-fedin
Copy link
Contributor

OK, is this only an issue for flatpak, or also with native installations, in a KDE Plasma environment?

Well, I'm not sure. Feel free to test.

@AndydeCleyre
Copy link
Contributor

I'm not currently running Arch, but an LTS Ubuntu, so can't test non-flatpak updated Telegram Desktop at the moment. If anyone else here can tell me if monospace uses the proper font in KDE Plasma, I'd appreciate it.

@ilya-fedin
Copy link
Contributor

You can try the static binary

@AndydeCleyre
Copy link
Contributor

Thanks! Yes it works just fine with the static build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests