embeddedFonts list is empty, FontFile=false in XML report
karenhanson opened this issue · comments
I'm seeing the issue with reporting of embedded fonts described in the final bullet point of issue #1515. I thought I would log it as a separate issue as I have tested some EPUBs and can add a little context.
The embeddedFonts
list appears to always be empty. The result is that the XML report shows FontFile=false for the fonts regardless of whether the font file is embedded or not. I tested the epub at the link below - this has embedded fonts and I see the FontFile parameter is false for each. In version 4.2.0 FontFile value was true for each font.
https://github.com/IDPF/epub3-samples/tree/main/30/moby-dick
I also tested obfuscated fonts. These are also showing as not embedded - again, earlier versions of EPUBCheck showed FontFile=true.
https://github.com/IDPF/epub3-samples/tree/master/30/wasteland-woff-obf
Finally, I tested this file. In this case the XML report accurately lists the font as not embedded (FontFile=false):
https://github.com/KBNLresearch/epubPolicyTests/tree/master/content/epub20_missingfontresource
By chance this fixes a bug from the previous EPUBCheck 4.2.0 where FontFile=true for this file.
I will note that the messages in each case do correctly indicate when a font is missing or obfuscated.