Bug 394655

Summary: Font Management ignores TrueType Collection (ttc) fonts
Product: [Applications] kfontview Reporter: Maxim Egorushkin <maxim.yegorushkin>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: REPORTED ---    
Severity: normal CC: david.p.warner, frederick888, public
Priority: NOR Keywords: junior-jobs
Version: 5.12.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Maxim Egorushkin 2018-05-24 17:54:32 UTC
Font Management application filters out TrueType Collection (ttc) fonts fonts and hence does not allow viewing or installing them.

However, if I install ttc fonts manually by copying them into ~/.local/share/fonts Font Management shows those as installed and allows to view them.

Please enable ttc fonts in Font Management application.
Comment 1 Frederick Zhang 2019-01-16 14:09:12 UTC
I can confirm this issue with Plasma 5.14.5.

As a temporary solution, one can:
1. Edit /usr/share/applications/org.kde.kfontview.desktop, comment out NoDisplay=true, then associate font/collection with KFontView in File Associations. Undo the change later if needed.
2. Copy /usr/share/kservices5/ServiceMenus/installfont.desktop to $HOME/.local/share/kservices5/ServiceMenus/installfont.desktop, and then add font/collection to X-KDE-ServiceTypes so that the Install button can show up in the context menu for TTC files.
Comment 2 Frederick Zhang 2019-01-16 14:21:44 UTC
And possibly copy and edit fontthumbnail.desktop & kfontviewpart.desktop as well for preview and etc...
Comment 3 David Warner 2020-05-03 10:47:42 UTC
Just confirming that this is still an issue in 5.18.4.

Looking at the code, I see the dialog is filtered with

dlg.setMimeTypeFilters(CFontList::fontMimeTypes);

Is it just a matter of adjusting CFontList::fontMimeTypes to include application/x-font-ttc?
Comment 4 Christoph Feck 2020-06-01 20:35:36 UTC
That's certainly a good hint for further investigations.
Comment 5 Fabio Forni 2022-03-03 22:07:42 UTC
It seems not to be an issue anymore with Framework 5.91.0. I managed to install this TTC font (http://fontsvip.com/C-fonts/65295.html) using the "Install from File" dialog.