summaryrefslogtreecommitdiff
path: root/pygments/formatters/img.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/formatters/img.py')
-rw-r--r--pygments/formatters/img.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pygments/formatters/img.py b/pygments/formatters/img.py
index aa4cf35e..6a9a1eb8 100644
--- a/pygments/formatters/img.py
+++ b/pygments/formatters/img.py
@@ -126,7 +126,8 @@ class FontManager:
'/Library/Fonts/', '/System/Library/Fonts/'):
font_map.update(
(os.path.splitext(f)[0].lower(), os.path.join(font_dir, f))
- for f in os.listdir(font_dir) if f.lower().endswith('ttf'))
+ for f in os.listdir(font_dir)
+ if f.lower().endswith(('ttf', 'ttc')))
for name in STYLES['NORMAL']:
path = self._get_mac_font_path(font_map, self.font_name, name)