Skip to content

embeddedFonts list is empty, FontFile=false in XML report #1519

Closed

Description

@karenhanson

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.

Activity

  1. added a commit that references this issue on Jun 12, 2023
  2. self-assigned this
    on Jul 5, 2023
  3. added a commit that references this issue on Jul 6, 2023
    8575a6b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

status: has PRThe issue is being processed in a pull request

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    ⌂ 换网址