Bug 454804 - Add support for switching font feature in Text Editor
Summary: Add support for switching font feature in Text Editor
Status: REPORTED
Alias: None
Product: krita
Classification: Applications
Component: Tool/Text (show other bugs)
Version: 5.0.6
Platform: Microsoft Windows Microsoft Windows
: NOR wishlist
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-03 15:35 UTC by Volga
Modified: 2022-08-05 13:54 UTC (History)
1 user (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 Volga 2022-06-03 15:35:05 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
With this support it’s possible to enable some special font fetures such as small caps, discretionary digits, old-style digits, stylistic alternatives, and so on.

CSS have the ‘font-variants-liguatures’, ‘font-variant-caps’, ‘font-variant-numeric’, ‘font-variant-position’, and ‘font-feature-settings’ properties for them, and Pango and HarfBuzz also pave the way to handle special OpenType font features. So it’s possible to make the implementation.

STEPS TO REPRODUCE
1. Open an image
2. Click Text tool to insert a text
3. Add font-feature-settings in Text Editor

OBSERVED RESULT
No special font features enabled

EXPECTED RESULT
Krita’s Text Editor should be able to switch font features

SOFTWARE/OS VERSIONS
Windows: 10
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Documentations at MDN Web Docs:
https://developer.mozilla.org/en-US/docs/Web/CSS/font-feature-settings
Samples from an individual developer:
http://tavmjong.free.fr/blog/?p=1442
Comment 1 Volga 2022-08-05 13:54:52 UTC
Inkscape implemented interfaces for font features over years.
https://wiki.inkscape.org/wiki/index.php/Release_notes/0.92#Font_Features