Skip to content

Search common system figlet font directories#158

Open
Mirochill wants to merge 1 commit into
pwaller:mainfrom
Mirochill:fix-86-system-font-directories
Open

Search common system figlet font directories#158
Mirochill wants to merge 1 commit into
pwaller:mainfrom
Mirochill:fix-86-system-font-directories

Conversation

@Mirochill

Copy link
Copy Markdown

Fixes #86.

Summary

  • add common Unix FIGlet font directories to pyfiglet's font lookup path
  • use the same directories when preloading, validating, and listing fonts
  • document the system font lookup and cover the directory search path with a regression test

Validation

  • git diff --check
  • git show --check --stat --oneline HEAD
  • rg -n "FONT_DIRECTORIES|/usr/share/figlet|test_font_directories_are_searched|system fonts" pyfiglet/__init__.py pyfiglet/tests/test_cli.py README.md
  • Not run locally.

@pwaller pwaller marked this pull request as ready for review May 31, 2026 13:05
@pwaller

pwaller commented May 31, 2026

Copy link
Copy Markdown
Owner

I brought this out of draft so CI can run. It looks reasonable to me. Are you happy for it to go in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow loading fonts automatically from /usr/share/figlet

2 participants