Closed arteme closed 2 years ago
Thanks for reporting the bug... again!
In the previous release, I ran all tests under Windows and they all passed. That case is not covered (which is weird, I test internal fonts loading) or something else happend.
I'll publish a fix asap.
FInally, I released a patch for this issue. I hope it's finally fixed, I tested as best as I could
Thank you so much for fixing #20. Internal font loading works correctly when using "/" path separator (i.e.
"c64/platoon2"
), however the internal font list still returns paths with the windows path separator (\
).Configuration
OS type and version: Windows 10 21H1 JVM type and version: 11.0.13 Scala version: 2.12.13 Figlet4s version: 0.3.1
Steps
Problem
Needless to say, using C64 fonts from the internal lists as-is fails:
This fails witth:
Notes
As I wrote in #20, resources always use
/
path separator, regardless of the OS path separators, thus treating resource paths as Path object is little erroneous. At the very list you'll want to do something like this in the end:.replaceAll(File.pathSeparator, "/")
.