Skip to content

Flag SVG fonts as exempt foreign resources #1615

Closed

Description

@mattgarrish

While looking at adding the non-preferred media type application/x-font-ttf for TrueType fonts, I noticed that SVG fonts are considered blessed fonts. That despite their not being listed in the core media type table or required to be supported by reading systems.

After some digging through old history in w3c/epub-specs#2729 , it appears that we let SVG fonts slide through as core media types and the cascade would handle fallbacks for reading systems that don't support them, an early taste of what we opted to do for all fonts many years later.

All that to say, we should probably flag SVG fonts as exempt foreign resources -- if it's not too problematic to differentiate them from content documents?

It won't change that they're allowed without fallbacks, but it'd be more in line with how the specification treats them. And if, as Brady points out in that issue, support for them is nearly dead, some message might be better than nothing.

Activity

  1. mattgarrish commented on May 31, 2025

    @mattgarrish
    MemberAuthor

    Actually, maybe this is a non-issue. The ability to add fonts has been removed in SVG 2, so presumably anyone who used them in the past is already going to fail validation if they try to republish/revalidate their content.

    It might be a good cleanup task to take them out of the list of core font media types, but I'm fine if you just want to close this off with no action.

  2. self-assigned this
    on Aug 14, 2025
  3. added
    type: maintenanceThe issue is related to a meta task (build system, dependency update, etc)
    on Sep 1, 2025
  4. added a commit that references this issue on Sep 1, 2025
    2094698
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

spec: EPUB 3.4Impacting the support of EPUB 3.4status: acceptedReady to be further processedtype: maintenanceThe issue is related to a meta task (build system, dependency update, etc)

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    ⌂ 换网址