When using the take_screenshots.js file, lines 7-10 read the .md files in the fonts directory and store their names in whatever case the name of the file is in, i.e. if the file is Menlo.md, it's read as Menlo. This is then passed in the URL when navigating to the code sample page with Puppeteer where it proceeds to not render the sample in the specified font if the font isn't in all lowercase. I've attached some screenshots below that show this.
Solutions
One solution is to is to rename all the font directories so that they're all in lowercase and continue to maintain this style moving forward.
Another solution is to simply add a toLowerCase() method call when declaring the allFonts variable. This has the benefit of not concerning itself with the case of the font files themselves. Example below.
Personally I think the second solution is better though I'll leave it up to you. Let me know which solution is more preferable and I'll make a pull request.
Issue
When using the take_screenshots.js file, lines 7-10 read the .md files in the fonts directory and store their names in whatever case the name of the file is in, i.e. if the file is Menlo.md, it's read as Menlo. This is then passed in the URL when navigating to the code sample page with Puppeteer where it proceeds to not render the sample in the specified font if the font isn't in all lowercase. I've attached some screenshots below that show this.
Solutions
One solution is to is to rename all the font directories so that they're all in lowercase and continue to maintain this style moving forward.
Another solution is to simply add a
toLowerCase()
method call when declaring theallFonts
variable. This has the benefit of not concerning itself with the case of the font files themselves. Example below.Personally I think the second solution is better though I'll leave it up to you. Let me know which solution is more preferable and I'll make a pull request.