-
Notifications
You must be signed in to change notification settings - Fork 0
Use local font in test suite #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Working notes
There is overlap between how git-sim uses The quick patchy demo fix for getting def construct(self):
from pathlib import Path
font_path = Path(settings.font)
if font_path.exists():
with m.register_font(font_path):
if not settings.stdout and not settings.output_only_path and not settings.quiet:
print(
f"{settings.INFO_STRING} {type(self).__name__.lower()}{' --all' if self.all_subcommand else ''}{' -n ' + str(self.n) if self.n_subcommand else ''}"
)
self.font = "ProggyCleanTT"
self.show_intro()
...
|
Working notes
|
Rework on fresh branchThe
|
PR Notes
|
Other notes
|
Closing, as the main work here has been merged in git-sim 98. Also, open tasks have been moved to git-sim 99. |
Tests are brittle due to cross-platform font issues. Running tests using an embedded open font would address this once and for all, and allow a low, reliable test pixel ratio.
The text was updated successfully, but these errors were encountered: