Bug 394655 - Font Management ignores TrueType Collection (ttc) fonts
Summary: Font Management ignores TrueType Collection (ttc) fonts
Status: REPORTED
Alias: None
Product: kfontview
Classification: Applications
Component: general (show other bugs)
Version: 5.12.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2018-05-24 17:54 UTC by Maxim Egorushkin
Modified: 2022-03-03 22:07 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.