Skip to content

Allow application/x-font-ttf as a core media type for TTF fonts #1612

Closed

Description

@SadiraStone

I'm hoping someone can help me translate this error code into language I can understand and actionable steps. I formatted this epub using Atticus and uploaded with no problems to every vendor except D2D, who gave me this error message:
Errors
Amazon, Apple, Baker & Taylor, BorrowBox, D2D Print, Fable, Gardners, Hoopla, Kobo, OverDrive, Palace Marketplace, Smashwords, Tolino, Vivlio, and cloudLibrary will be disabled until this epub can pass EPUBCheck

INFO(CSS-007): /OEBPS/style.css(852,3): Font-face reference "https://8a1840b5-1962-4704-9ee2-12df2af50d1f.epubcheck.w3c.org/OEBPS/fonts/Spectral-Bold.ttf" refers to non-standard font type "application/x-font-ttf".

INFO(CSS-007): /OEBPS/style.css(860,3): Font-face reference "https://8a1840b5-1962-4704-9ee2-12df2af50d1f.epubcheck.w3c.org/OEBPS/fonts/Allura-Regular.ttf" refers to non-standard font type "application/x-font-ttf".

Many thanks for any light you can shed.

Activity

  1. mattgarrish commented on May 22, 2025

    @mattgarrish
    Member

    FYI, this isn't the best place to ask for help with validation errors. This is where the epubcheck application is developed so questions like this usually get closed because they aren't identifying bugs that need fixing. You're more likely to get help from the W3C publishing community group or in a mobileread forum.

    That said, you need to change the manifest entries for the fonts in the package document so that their media types are "font/ttf" to make that info message go away.

    EPUB allows any fonts, so it's not an error to use the old media type application/x-font-ttf but it's also not one of epub's core font media types (i.e., one that signals the font is guaranteed to be supported). I guess with the old media type they're assuming the font won't render, even though the media type is kind of meaningless in this case (the font will render because it is a supported format).

    If you're not sure how to make the change manually, I'd suggest reporting the problem to the Atticus support folks to fix in their exports.

  2. SadiraStone commented on May 22, 2025

    @SadiraStone
    Author
  3. mattgarrish commented on May 26, 2025

    @mattgarrish
    Member

    Note that I reopened w3c/epub-specs#667 and we're going to be adding application/x-font-ttf to the list of core media types for TTF fonts in w3c/epub-specs#2726

    It will eventually mean that this info message goes away, but it could be a couple of years before it makes it into epubcheck and vendor systems, so it won't help you out now.

    I'm going to flag this for implementation as part of EPUB 3.4, though.

  4. changed the title [-]Baffled by Draft2Digital epub validation error[/-] [+]Allow application/x-font-ttf as a core media type for TTF fonts[/+] on May 26, 2025
  5. self-assigned this
    on May 26, 2025
  6. SadiraStone commented on May 26, 2025

    @SadiraStone
    Author
  7. added a commit that references this issue on Sep 1, 2025
    66e5254
  8. added
    spec: EPUB 3.4Impacting the support of EPUB 3.4
    and removed
    spec: EPUB 3.xImpacting the support of EPUB 3.x specifications
    on Jan 2, 2026
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: ready for implemThe issue is ready to be implementedtype: specThe issue is related to a Specification update

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    ⌂ 换网址