1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
From: Georges Khaznadar <georgesk@debian.org>
Date: Sun, 5 Oct 2025 20:50:36 +0200
Subject: t1searchpath
===================================================================
---
src/reportlab/pdfbase/pdfmetrics.py | 2 +-
src/reportlab/rl_settings.py | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/reportlab/pdfbase/pdfmetrics.py b/src/reportlab/pdfbase/pdfmetrics.py
index e97a016..fea8574 100755
--- a/src/reportlab/pdfbase/pdfmetrics.py
+++ b/src/reportlab/pdfbase/pdfmetrics.py
@@ -194,7 +194,7 @@ def bruteForceSearchForAFM(faceName):
"""Looks in all AFM files on path for face with given name.
Returns AFM file name or None. Ouch!"""
- from reportlab.rl_config import T1SearchPath
+ from reportlab.rl_settings import T1SearchPath
for dirname in T1SearchPath:
if not rl_isdir(dirname): continue
diff --git a/src/reportlab/rl_settings.py b/src/reportlab/rl_settings.py
index bd59ab5..0b6a856 100644
--- a/src/reportlab/rl_settings.py
+++ b/src/reportlab/rl_settings.py
@@ -200,6 +200,8 @@ T1SearchPath = (
'~/.fonts',
'%(XDG_DATA_HOME)s/fonts',
'~/.local/share/fonts',
+ '/usr/lib/python3/dist-packages/reportlab/fonts',
+ '/usr/share/fonts/X11/Type1/',
)
# places to look for TT Font information
|