From 97ae41a9df4c4977e07f591cd642da6af560fb3b Mon Sep 17 00:00:00 2001 From: Vincent Nguyen Date: Wed, 20 Nov 2024 10:45:32 +0100 Subject: [PATCH 1/2] [Feature] Support OTF fonts in ressources --- kibot/kiplot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kibot/kiplot.py b/kibot/kiplot.py index 7a03dd06..f0e7feda 100644 --- a/kibot/kiplot.py +++ b/kibot/kiplot.py @@ -1209,7 +1209,7 @@ def setup_fonts(source): return dest = os.path.expanduser('~/.fonts/') installed = False - for f in glob(os.path.join(source, '*.ttf')): + for f in glob(os.path.join(source, '*.[to][tf]f')): fname = os.path.basename(f) fdest = os.path.join(dest, fname) if os.path.isfile(fdest): From b76b89ca42af9e2a5b52ec23e9f99ef068a841d0 Mon Sep 17 00:00:00 2001 From: Vincent Nguyen Date: Wed, 20 Nov 2024 10:52:53 +0100 Subject: [PATCH 2/2] [Kiplot] only match .ttf and .otf patterns for fonts --- kibot/kiplot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kibot/kiplot.py b/kibot/kiplot.py index f0e7feda..9430f3fc 100644 --- a/kibot/kiplot.py +++ b/kibot/kiplot.py @@ -1209,7 +1209,7 @@ def setup_fonts(source): return dest = os.path.expanduser('~/.fonts/') installed = False - for f in glob(os.path.join(source, '*.[to][tf]f')): + for f in glob(os.path.join(source, '*.ttf')) + glob(os.path.join(source, '*.otf')): fname = os.path.basename(f) fdest = os.path.join(dest, fname) if os.path.isfile(fdest):