lbry-android-sdk/p4a/pythonforandroidold/recipes/vispy/disable_font_triage.patch

28 lines
1.1 KiB
Diff
Raw Normal View History

2022-12-02 21:15:34 +01:00
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 = {}