Thiago Sueto 63206ef1dd Don't set emoji size to font size
https://invent.kde.org/network/neochat/-/merge_requests/2005 changed the custom emoji height (whose default is 32 on every Matrix client) to match font height (on my machine it becomes 17, my font is 12pt).

It makes emojis unreadable on non-HiDPI resolutions (1366x768, 1920x1080), and even in the MR itself you can see how much detail is lost. This is compounded by some other rendering bug where the emoji image becomes very jagged when downscaled.

That MR however was correct in that:
* we want custom emojis to have a different size than unicode emojis
* we want custom emojis to be centered according to the text (to make better use of line spacing/paddings)
* we don't want the line height to be changed (too much) by custom emojis
* we (probably) want custom emojis to be _displayed_ proportionally to the text

I'm investigating ways to solve this issue. It seems other Matrix clients (and even chat applications like Telegram or Discord) all globally suffer from this issue and have dealt with it in different ways, sometimes masquerading it and sometimes working around it.

For now though, we shouldn't break emoji legibility for our users. Affecting line height by a few pt is a minor issue compared to being almost unable to tell what inline emoji you or your interlocutor is using. Even just the "center emoji with text" thing already makes the line height issue 1/3 less of a problem. Once we improve the emoji rendering so it's more readable, _then_ it would make sense to decrease the emoji height to something like font.height * 1.6 or so.

This does not affect unicode emojis, as far as I can tell those are handled elsewhere. This only affects inline custom emojis.

Illegible on 1366x768 with 100% scaling and font size 11:

![image](/uploads/1d074c78d63aa1f28d9f3d204a656cc7/image.png){width=1025 height=576}

![Screenshot_20241212_144737](/uploads/7ae8e080f383461dcef3320575c05b24/Screenshot_20241212_144737.png)

Legible:

![Screenshot_20241212_150257](/uploads/4f9395bd25025317005aaf1b9a1633c0/Screenshot_20241212_150257.png)

![Screenshot_20241212_150357](/uploads/a5fbb8885d601592591e99c0cc669794/Screenshot_20241212_150357.png)


(cherry picked from commit 29820e2ab2)

3cea53f5 Don't set emoji size to font size

Co-authored-by: Thiago Sueto <herzenschein@gmail.com>
2024-12-12 18:14:36 +00:00
2021-04-02 23:55:13 +00:00
2024-03-11 20:07:00 +01:00
2022-09-21 12:07:44 +00:00
2023-09-27 16:23:29 +02:00
2024-12-09 03:22:50 +00:00
2024-12-12 18:14:36 +00:00
2024-09-21 09:46:33 +00:00
2024-11-03 17:48:40 +01:00
2024-09-28 12:59:32 +05:30
2021-01-27 14:51:10 +01:00
2021-01-27 18:54:13 +01:00
2021-05-22 19:12:29 +00:00
2023-09-27 23:43:55 -04:00
2024-12-04 20:04:56 +00:00

NeoChat

A Qt/QML based Matrix client.

Made for Matrix Download on Flathub Download on the Snap Store

Introduction

NeoChat is a client for Matrix, the decentralized communication protocol for instant messaging.

NeoChat is based on KDE frameworks and as libQuotient, a Qt-based SDK for the Matrix Protocol.

Timeline

Features

NeoChat aims to be a fully featured application for the Matrix specification. As such most parts of the current specification are supported, with the notable exceptions of VoIP, threads, and some aspects of End-to-End Encryption. There are a few other smaller omissions due to the fact that the Matrix spec is constantly evolving, but the aim remains to provide eventual support for the entire spec.

Due to the nature of the Matrix specification development NeoChat also supports numerous unstable features. Currently these are:

  • Polls - MSC3381
  • Sticker Packs - MSC2545
  • Location Events - MSC3488

Get it

Details where to find stable releases for NeoChat can be found on its homepage.

Nightly builds for Linux and Windows can be downloaded from cdn.kde.org. Nightly builds for Android are available from KDE's nightly F-Droid repository. Nightly Flatpaks are available from KDE's nightly Flatpak repository.

Building NeoChat

The best way to build KDE apps during development is to use kdesrc-build. The full instructions for this can be found on the KDE community website's get involved section under development. This is primarily aimed at Linux development.

For Windows and Android Craft is the primary choice. There are guides for setting up development environments for Windows and Android.

Running

Just start the executable in your preferred way - either from the build directory or from the installed location.

Tests

Tests are in the repository under autotests and appiumtests.

The project has CI setup to test new commits to the repository. All tests are expected to pass for a merge request to be complete.

Current build status

coverage

Currently the number of tests is limited, but growing. If anyone wants to help improve this, those contributions would be especially welcome.

Contributing

As is the case throughout the KDE ecosystem contributions are welcome from all. The code base is managed in the NeoChat repository of the KDE Gitlab instance.

Contact

The best place to reach the maintainers is on the KDE Matrix instance in the NeoChat channel, #neochat:kde.org. See Matrix for more details.

Acknowledgement

NeoChat utilizes libQuotient as its Matrix SDK.

NeoChat is a fork of Spectral.

License

GPLv3

This program is licensed under GNU General Public License, Version 3.

Description
A client for matrix, the decentralized communication protocol
Readme 74 MiB
Languages
C++ 51.4%
QML 31.5%
C 15.1%
CMake 1.5%
Python 0.5%