blob: 5d24e96ed3dad6813bb704b9d7f3cfd35c0d8ab1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- src/utils/fs.py.orig 2010-05-23 10:46:21 UTC
+++ src/utils/fs.py
@@ -203,9 +203,11 @@ def get_system_fontdirs():
The function detects system font directories according to detected
system type.
"""
+ if system.get_os_family()==system.FREEBSD:
+ return ['/usr/local/lib/X11/fonts', '/usr/local/share/fonts', os.path.join(gethome(),'.fonts')]
if system.get_os_family()==system.LINUX:
return ['/usr/share/fonts', os.path.join(gethome(),'.fonts')]
- if system.get_os_family()==system.WINDOWS:
+ if system.get_os_family()==system.WINDOWS:
try:
import _winreg
except ImportError:
@@ -311,4 +313,4 @@ def _test():
if __name__ == '__main__':
_test()
-
\ No newline at end of file
+
|