Closed dbast closed 1 year ago
@dbast,
Thank you for your recent work.
In case you are not yet aware, we've had an informal code-freeze for the past 3 weeks, opting only for most critical bug fixes, as release 0.7.0 is imminent. Others will likely review your detailed improvements after 0.7.0 is out-the-door.
If interested, all are welcome to join the "SeedSigner New Devs" telegram group here
I have no problem with these changes after reviewing with my own eyes.
Could you help me to reproduce the same errors, so that I can see them myself without your changes, and then verify that they're resolved with this pr? Or is it the case that these only show up during automated runs on github?
I don't feel too strongly about this, but I slightly prefer just fixing the font file name (which is obv a bug/inaccurate) in the exception but not including the full path (unlikely to be useful now that the niche CI issue has been resolved, won't fit in the onscreen exception handler display).
Ok. Reduced the PR to only fix the extension in the Exception message.
This can be tested by making the folder src/seedsigner/fonts unavailable and e.g. running the tests.
I made ./src/seedsigner/resources/fonts unreadable and indeed provoked the ".ttf" font-file error.
Tested that with this pr, the font file extension is now correct.
ACK
The exception had the
.ttf
extension hardcoded, which lead to error messages likeseedsigner-icons.ttf
not found, which is missleading as there only is aseedsigner-icons.otf
file. Also add the full font file path to the exception to know where the file is actually expected.This was found while working on https://github.com/SeedSigner/seedsigner/pull/469 before the font setup was correct in the PR.