Additional Windows 10 font directory location (v 1809)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
calibre v4.21, Windows 10 Pro, version 1903, OS build 18362.959
Calibre util font scanner on Windows looks in the system fonts directory for fonts. This is where fonts go when a user chooses "Install for all users". If, instead, one chooses to just "install" a font, windows will now (as of version 1809) place the file in "%LOCALAPPDATA%
Steps to replicate, and a workaround:
Find a new font file for Windows 10 (1809)
calibre plugin installed that uses font scanner cache, e.g. "Generate Cover"
calibre not running
Delete the curent scanner_cache.json file to cause it to be rebuilt
Open Windows fonts directory (winkey-R "shell:fonts" is one way)
Confirm that new font is not installed
Right click new font file and choose "Install" from the menu, NOT "Install for all users"
Confirm that new font is "in" windows fonts directory, but right-click properties on font shows location is actually "%LOCALAPPDATA%
Start calibre
Confirm scanner_cache.json is created
Confirm new font not in scanner_cache.json
Confirm font not available to "Generate Cover"
Stop calibre
Delete the scanner_cache.json file
Uninstall (delete) font from windows font tool
re-install font and this time choose "Install for all users"
Confirm that new font is "in" windows fonts directory and right-click properties shows location is, e.g. "C:\Windows\Fonts"
Start Calibre
Confirm scanner_cache.json is created
Confirm new font in scanner_cache.json
Confirm font now available to "Generate Cover"
??? Possible fix for this bug:
If a windows user has an library named "fontconfig", I don't think the below will work, but maybe add "os.path.
See also discussions:
https:/
how inkscape resolved issue in their code at https:/
And matplotlib at https:/
I found this bug when I began to use the "Generate Cover" plugin to create custom covers for documents that I've stored in calibre. I decided to install some new fonts to use for generated covers, and could not find my new fonts in the list managed by the plugin. About 2 hours of research led to this bug report.