| Summary: | KDE Plasma ignores local fonts.conf file when trying to use Opentype alternate features | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Matt <takomora> | 
| Component: | general | Assignee: | David Edmundson <kde> | 
| Status: | CONFIRMED --- | ||
| Severity: | normal | CC: | akselmo, alexei.arutyunov, andrea.ippo, anton, chermnykh2001, d_debnath, elman, itshanibee, kde, kdedev, nate, plasma-bugs-null, stereomato, tallis.elliott | 
| Priority: | NOR | ||
| Version First Reported In: | 5.15.3 | ||
| Target Milestone: | 1.0 | ||
| Platform: | CachyOS | ||
| OS: | Linux | ||
| See Also: | https://bugs.kde.org/show_bug.cgi?id=503341 | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Screenshot showing both text editors, Gedit shows the Opentype features, Kate does not. Screenshot showing that IBM Plex Mono is the font in use in Kate Screenshot showing IBM Plex Mono is the font in use in Gedit Kate in Budgie also does not display the Opentype features | ||
| 
        
          Description
        
        
          Matt
        
        
        
        
          2019-04-29 16:55:40 UTC
        
       Created attachment 119716 [details]
Screenshot showing that IBM Plex Mono is the font in use in KateCreated attachment 119717 [details]
Screenshot showing IBM Plex Mono is the font in use in Gedit> When I added the fonts.conf with the code from the wiki above in ~/.config/fontconfig/fonts.conf I get slashed zeroes on Solus Budgie.
What had the correct slashed zeroes? Kate running on budgie?(In reply to David Edmundson from comment #3) > > When I added the fonts.conf with the code from the wiki above in ~/.config/fontconfig/fonts.conf I get slashed zeroes on Solus Budgie. > > What had the correct slashed zeroes? Kate running on budgie? Sorry for not specifying. The correct zeroes were in Gedit on Budgie (and the Budgie UI if I set IBM Plex Sans (used by the UI) to also have slashed zeroes). If it's available, please can you test kate on budgie. Alternatively unset KDE_FULL_SESSION, XDG_CURRENT_DESKTOP from within plasma I need to narrow down if you're saying it's all Qt apps (but in Qt QPA loading fontconfig) or a bug in plasma-integration, a Qt plugin loaded into all Qt apps via plasma to set default fonts. (In reply to David Edmundson from comment #5) > If it's available, please can you test kate on budgie. > > Alternatively unset KDE_FULL_SESSION, XDG_CURRENT_DESKTOP from within plasma > > I need to narrow down if you're saying it's all Qt apps (but in Qt QPA > loading fontconfig) or a bug in plasma-integration, a Qt plugin loaded into > all Qt apps via plasma to set default fonts. It looks like Kate in Budgie also does not display the alternate style glyphs. I will attach another screenshot. Created attachment 119727 [details]
Kate in Budgie also does not display the Opentype featuresComment on attachment 119727 [details]
Kate in Budgie also does not display the Opentype features
Notice how the title bar (Budgie) differs from the application itself. Same font, different Opentype alternate style for a and g.Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone! Just wanted to add that if I type the command: fc-match -v 'IBM Plex Mono' into Konsole the fontfeatures are listed in the output, for example: fontfeatures: "ss03"(w) Not 100% where this needs to be moved to--possibly some Framework. But it's possible that Plasma or plasma-integration could be involved somehow too. Either way, moving out of System Settings. I'm facing the same problem. I have Fira Sans as default font and then I set fontfeatures in ~/.config/fontconfig/conf.d/80-fira-sans-fontfeatures.conf (tnum on and zero on). I have tested my config with fc-match and pango-view and everything seems to be OK. GTK apps respect my settings (I have tried Filezilla and PulseEffects), however Qt apps don't respect my settings (I have tried Plasma, Dolphin, Kate, Double Commander Qt and KFind) I can confirm this bug.
    $ fc-match --verbose 'Source Code Pro'
shows
    fontfeatures: "zero on"(w)
among other things.
but Konsole, Kate or KDE in general doesn't render the slashed zero feature of Source Code Pro, which is expected when the zero feature is turned on.
GIMP (gtk application) on the same system did show the slashed zero feature. Therefore, I can confirm that this is a KDE bug. I also have this issue. 
I've added the following to my file:
 <!-- ibm plex config -->
 
  <match target="font">
   <test name="family">
    <string>IBM Plex Sans</string>
   </test>
   <edit mode="assign_replace" name="fontfeatures">
    <string>ss02</string>
   </edit>
  </match>
 
  <match target="font">
   <test name="family">
    <string>IBM Plex Mono</string>
   </test>
   <edit mode="assign_replace" name="fontfeatures">
    <string>ss02</string>
   </edit>
  </match>
In GTK apps the glyphs show up as changed, but in KDE apps they do not.
System info:
Operating System: Fedora Linux 36
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Kernel Version: 5.18.16-200.fc36.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15,5 GiB of RAM
Graphics Processor: AMD DIMGREY_CAVEFISHSame here, I enable multiple features of the Commit Mono font, but it's all ignored. I am also facing this issue now that I am trying to use Inter Display font with disambiguation feature (ss04) enabled. With fontconfig changes GTK apps and Firefox have this feature enabled but KDE apps haven't. Another side effect of this issue is that Digital Clock widget seems to have tabular numbers feature (tnum) forcefully enabled and there is no option to disable it. This behaviour seems illogical because clock looks completely different for lockscreen and SDDM. I'd prefer at least to have a checkbox in widget settings for it. Should I report a separate bug for that? System info: Operating System: Fedora Linux 41 KDE Plasma Version: 6.3.3 KDE Frameworks Version: 6.12.0 Qt Version: 6.8.2 Graphics Platform: Wayland Hello! I just wanted to confirm this issue on; Operating System: CachyOS Linux KDE Plasma Version: 6.4.4 KDE Frameworks Version: 6.17.0 Qt Version: 6.9.2 Kernel Version: 6.16.4-2-cachyos (64-bit) Graphics Platform: Wayland I made a font config at .config/fontconfig/conf.f/80-inter-fontfeatures.conf to modify Inter with some of it's neat alternate character sets. So far I have enabled; cv01 Alternate one cv09 Flat-top three cv02 Open four cv03 Open six cv04 Open nine cv06 Simplified u cv12 Compact f cv13 Compact t cv08 Upper-case i with serif cv05 Lower-case L with tail It seems like this method of doing it isn't supported by Plasma and KDE Applications because it seems like Firefox and other GTK applications like Lutris adopt the changes. Is there a different method for KDE specifically or is it intended to be this way? |