lbry-android/p4a/pythonforandroid/recipes/vispy/disable_font_triage.patch
Akinwale Ariwodola 744cfaebc2 Initial commit
2017-08-13 02:24:00 +01:00

27 lines
1.1 KiB
Diff

diff --git a/vispy/util/fonts/_triage.py b/vispy/util/fonts/_triage.py
index ddbc93d..324c161 100644
--- a/vispy/util/fonts/_triage.py
+++ b/vispy/util/fonts/_triage.py
@@ -9,14 +9,14 @@ import sys
from ._vispy_fonts import _vispy_fonts
if sys.platform.startswith('linux'):
from ._freetype import _load_glyph
- from ...ext.fontconfig import _list_fonts
-elif sys.platform == 'darwin':
- from ._quartz import _load_glyph, _list_fonts
-elif sys.platform.startswith('win'):
- from ._freetype import _load_glyph # noqa, analysis:ignore
- from ._win32 import _list_fonts # noqa, analysis:ignore
-else:
- raise NotImplementedError('unknown system %s' % sys.platform)
+ # from ...ext.fontconfig import _list_fonts
+# elif sys.platform == 'darwin':
+# from ._quartz import _load_glyph, _list_fonts
+# elif sys.platform.startswith('win'):
+# from ._freetype import _load_glyph # noqa, analysis:ignore
+# from ._win32 import _list_fonts # noqa, analysis:ignore
+# else:
+# raise NotImplementedError('unknown system %s' % sys.platform)
_fonts = {}