Skip to content

Commit 1e52480

Browse files
Added fontconfig rt hook
1 parent 638b741 commit 1e52480

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

pyinstaller.spec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ a = Analysis(['run.py'],
2121
(oce_dir , 'oce')],
2222
hiddenimports=['ipykernel.datapub'],
2323
hookspath=[],
24-
runtime_hooks=['pyinstaller/pyi_rth_occ.py'],
24+
runtime_hooks=['pyinstaller/pyi_rth_occ.py',
25+
'pyinstaller/pyi_rth_fontconfig.py'],
2526
excludes=['_tkinter',],
2627
win_no_prefer_redirects=False,
2728
win_private_assemblies=False,

pyinstaller/pyi_rth_fontconfig.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import os
2+
import sys
3+
4+
if sys.platform.startswith('linux'):
5+
os.environ['FONTCONFIG_FILE'] = '/etc/fonts/fonts.conf'
6+
os.environ['FONTCONFIG_PATH'] = '/etc/fonts/'

0 commit comments

Comments
 (0)