docs: Enhance fonttools installation instructions and error messages to differentiate between pip and pipx usage.

This commit is contained in:
2026-03-02 14:18:08 +01:00
parent 5853a58093
commit cc5e5359e5
2 changed files with 10 additions and 2 deletions

View File

@@ -13,7 +13,8 @@ try:
from fontTools.ttLib import TTFont
except ImportError:
print("Error: 'fonttools' is required to accurately read internal font names.")
print("Please install it by running: pip install fonttools")
print("Please install it by running: pip install fonttools (for Windows/Ubuntu)")
print("Or: pipx install fonttools (for ArchLinux)")
sys.exit(1)
def get_ass_font_names(ass_path):