Seven characters in 5x8.flf should have height 9#148
Seven characters in 5x8.flf should have height 9#148peterbrittain merged 2 commits intopwaller:mainfrom
5x8.flf should have height 9#148Conversation
|
Looks plausible to me. Probably should run a quick test... Do the other characters after this section display correctly now? |
|
I believe so from manual testing. I didn't figure out where/how the automated tests go. |
|
You can just run tests.py for the test suite (assuming you also have figlet installed). They won't test this case because not all fonts have control codes. In fact, after trying to add a test, I discovered figlet deliberately drops them! |
|
Please include what you did for manual testing in the body -- that makes it easier for me to understand what's happening. |
Sorry, I misread the question. I had just checked that this change didn't mess up standard text. For the characters after the change, it looks like the character codes don't really match the glyphs either, eg the ones tagged |
|
Yeah - I was trying to figure out the logic for the assignments, but these don't match anything I've seen in the past (e.g. codepage 437). I've also discovered that pyfiglet cannot display them anyway - the current logic to load extended characters requires a hex index. Which is a happy coincidence, given that figlet ignores all control codes. Suggest we delete these extended chars as they would never have been displayed by figlet. |
|
Here are my best guesses for what these characters are supposed to be: Does pyfiglet handle the "0 = missing character" rule? If so, keeping the 0 might make sense. |
|
Nope. Pyfiglet will ignore missing characters instead. |
This is sort of related to #69 and #123 which fixed the header to say the height is 9 since that was true for most of the characters. But the last 7 of the 102 required characters had height 8 (as in the old incorrect header). These are all empty (as in have no subcharacters) and outside the ascii range (as in their characters codes) which is probably why this didn't show up in tests.