Quote:
Originally Posted by quiris
epubcheck 4 (alpha11) checks font mime type, but it isn't strict.
|
Update. Epubcheck 4.0
isn't strict for EPUB 2.0 version files:
Code:
java -jar ~/github/epubcheck-4.0.0-alpha11/epubcheck.jar ~/github/ttf_2.epub
Validating against EPUB version 2.0 - custom validation
Validating using EPUB version 2.0 rules.
No errors or warnings detected.
epubcheck completed
Epubcheck 4.0
is strict for EPUB 3.0 version files:
Code:
java -jar ~/github/epubcheck-4.0.0-alpha11/epubcheck.jar ~/github/ttf_3.epub
Validating against EPUB version 3.0 - custom validation
Validating using EPUB version 3.0 rules.
WARNING(CSS-007): ./github/ttf_3.epub/OEBPS/Styles/Style0001.css(3,5): Font-face reference OEBPS/Fonts/DejaVuSans0.ttf refers to non-standard font type application/x-font-ttf.
WARNING(CSS-007): ./github/ttf_3.epub/OEBPS/Styles/Style0001.css(8,5): Font-face reference OEBPS/Fonts/DejaVuSans1.ttf refers to non-standard font type application/x-font-truetype.
WARNING(CSS-007): ./github/ttf_3.epub/OEBPS/Styles/Style0001.css(18,5): Font-face reference OEBPS/Fonts/DejaVuSans3.ttf refers to non-standard font type application/font-sfnt.
WARNING(CSS-007): ./github/ttf_3.epub/OEBPS/Styles/Style0001.css(23,5): Font-face reference OEBPS/Fonts/FiraSans0.otf refers to non-standard font type application/x-font-ttf.
WARNING(CSS-007): ./github/ttf_3.epub/OEBPS/Styles/Style0001.css(28,5): Font-face reference OEBPS/Fonts/FiraSans1.otf refers to non-standard font type application/x-font-truetype.
WARNING(CSS-007): ./github/ttf_3.epub/OEBPS/Styles/Style0001.css(38,5): Font-face reference OEBPS/Fonts/FiraSans3.otf refers to non-standard font type application/font-sfnt.
Check finished with warnings
epubcheck completed