some font directories are ignored

Bug #1339257 reported by LCD 47 on 2014-07-08
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

Calibre 1.43, running on Linux.

If (1) you have two font directories, /usr/share/fonts/foo and /usr/share/fonts/foobar, and (2) foo is listed before foobar in /etc/fonts/fonts.conf, then Calibre will ignore all fonts in directory foobar. In particular, fonts in foobar can't be embedded when polishing books.

The reason is this test:

https://github.com/kovidgoyal/calibre/blob/master/src/calibre/utils/fonts/scanner.py#L85

Aside from the name conflict, the test is also wrong because it doesn't take into account symlinks.

Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers