Lunacy takes VERY long to start because of the fonts

The issue looks like a bug about fonts.

I don’t have 9 gigs of fonts, but as you can see from the log Lunacy thinks I have over 14000 font families, which is far from it.

...
03:19:05.724 SystemFonts	Done	> System fonts cache loaded: 14872 font families
...
03:19:05.066 Launcher	Default	> Launch args: /opt/icons8/lunacy/Lunacy.dll
03:19:05.070 Settings	Default	> DeviceId: f067e69d-ff13-4602-bf5f-657e5398260e
03:19:05.133 Account	Done	> Already authorized to EU_Prod. Refreshing
03:19:05.147 Api	Default	> Connection restoring: EU_Prod
03:19:05.159 Api	Default	> Main Connection is: EU_Prod
03:19:05.520 Push EU_Prod	Info	> Connecting
03:19:05.724 SystemFonts	Done	> System fonts cache loaded: 14872 font families
03:19:06.226 Push EU_Prod	Info	> Initializing
03:19:06.243 Push EU_Prod	Done	> Connected
03:19:06.750 Push EU_Prod	Error	> Disconnected
03:19:06.771 Account	Done	> Authorized to EU_Prod
03:19:06.782 Push EU_Prod	Info	> Connecting
03:19:07.152 Push EU_Prod	Info	> Initializing
03:19:07.153 Push EU_Prod	Done	> Connected
03:19:13.440 UpdateChecker	Default	> Remote version: 9.1.1
03:24:20.024 Render	Info	> Running a GC and GL cleanup on 20sec of AFK (once in 5min)

Here is what i have actually about fonts:

In ~/.local/share/fonts folder i have total 718 font files:

find ~/.local/share/fonts -type f \( -iname "*.otf" -o -iname "*.ttf" \) | wc -l
718

(see listing: https://fars.ee/E7-D)

In ~/.fonts folder i have total 0 fonts files but have 695 symlinks to font files from ~/.local/share/fonts folder:

find ~/.fonts -type f \( -iname "*.otf" -o -iname "*.ttf" \) | wc -l
0
find ~/.fonts -type l \( -iname "*.otf" -o -iname "*.ttf" \) | wc -l
695

(see listing of symlinks: https://fars.ee/mi6O)

In ~/usr/share/fonts folder i have total 3081 font files:

find /usr/share/fonts -type f \( -iname "*.otf" -o -iname "*.ttf" \) | wc -l
3081

(see listing: https://fars.ee/x26R)

Font family is not equal to a font file. E.g. you may have about 100 font files installed, but it may only be 1 font family (see Releases · be5invis/Iosevka · GitHub).

So I have not installed over 14,000 font families . But Lunacy consider i do. It’s a bug.

Here you can see the actual amount of fonts i have (font-manager app):


All: 1826
System: 567
User: 1293