Bug 479686 - Support for optional ligatures
Summary: Support for optional ligatures
Status: REOPENED
Alias: None
Product: frameworks-kconfig
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Matthew Dawson
URL:
Keywords:
: 499885 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-01-12 09:45 UTC by Hannes
Modified: 2025-02-19 20:56 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hannes 2024-01-12 09:45:37 UTC
SUMMARY

Ligatures that are on-by-default seem to work, but I can find no way to turn on optional Ligatures like those provided by the Monaspace fonts: https://github.com/githubnext/monaspace


STEPS TO REPRODUCE
1. Download Monaspace fonts and install
2. Select them in Kate

OBSERVED RESULT

Optional ligatures are not available.

EXPECTED RESULT

There should be GUI element that allows turning ligatures on/off and selecting optional ligatures. This code could be shared with other KDE components that do font selection.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 23.10
KDE Frameworks Version:   5.110.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Comment 1 Amir Khan 2024-01-18 13:44:06 UTC
Thanks for reporting this - as a KDE bug-triager, I have categorised this as a feature request.
Comment 2 Waqar Ahmed 2024-02-19 07:07:48 UTC
https://doc.qt.io/qt-6/qfont.html#setFeature-1
Comment 3 Bug Janitor Service 2024-08-02 12:00:40 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kwidgetsaddons/-/merge_requests/260
Comment 4 Christoph Cullmann 2024-08-22 19:50:42 UTC
Git commit 810903365c3dd25d1e6b859a9b853df298ed23a5 by Christoph Cullmann, on behalf of Waqar Ahmed.
Committed on 22/08/2024 at 19:50.
Pushed by cullmann into branch 'master'.

FontChoose: Allow setting font features when selecting font

Atm this setting can't work without support from the application because
QFont::toString() doesn't include the feature tags and we (Kconfig) uses
QFont::toString() to save a font

M  +69   -0    src/kfontchooser.cpp
M  +41   -31   src/kfontchooserwidget.ui

https://invent.kde.org/frameworks/kwidgetsaddons/-/commit/810903365c3dd25d1e6b859a9b853df298ed23a5
Comment 5 Christoph Cullmann 2024-08-22 21:05:58 UTC
We still need to fix the config saving.
Comment 6 Christoph Cullmann 2024-08-24 16:24:48 UTC
https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/720

For KTextEditor that works, we still need a generic solution for KConfig, not sure how to do that without breaking compatibility.
Comment 7 Christoph Cullmann 2024-08-24 16:25:43 UTC
We would need https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/720 in generic to support the features of both free modern fonts like Inter or paid stuff like MonoLisa.
Comment 8 Nate Graham 2025-02-19 20:56:51 UTC
*** Bug 499885 has been marked as a duplicate of this bug. ***