diff options
| author | Marat Radchenko <marat@slonopotamus.org> | 2020-02-25 09:59:11 +0300 |
|---|---|---|
| committer | Marat Radchenko <marat@slonopotamus.org> | 2020-02-25 10:01:01 +0300 |
| commit | 93be3addf0b3c6988ef3e92d3656ee69de6379c5 (patch) | |
| tree | 066ab8901ec61533ad4e38afed75457788962a31 /lib | |
| parent | 5915ee0fe8dee8219e3f701db9ceb919faa81809 (diff) | |
stop setting media-type for font files
gepub does that for us automatically
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/asciidoctor-epub3/converter.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/asciidoctor-epub3/converter.rb b/lib/asciidoctor-epub3/converter.rb index 492f742..a4c2878 100644 --- a/lib/asciidoctor-epub3/converter.rb +++ b/lib/asciidoctor-epub3/converter.rb @@ -1097,21 +1097,8 @@ document.addEventListener('DOMContentLoaded', function(event, reader) { </platform> </display_options>'.to_ios unless format == :kf8 - # https://github.com/asciidoctor/asciidoctor-epub3/issues/120 - # - # 'application/x-font-ttf' causes warnings in epubcheck 4.0.2, - # "non-standard font type". Discussion: - # https://www.mobileread.com/forums/showthread.php?t=231272 - # - # 3.1 spec recommends 'application/font-sfnt', but epubcheck doesn't - # implement that yet (warnings). https://idpf.github.io/epub-cmt/v3/ - # - # 3.0 spec recommends 'application/vnd.ms-opentype', this works without - # warnings. - # http://www.idpf.org/epub/30/spec/epub30-publications.html#sec-core-media-types font_files.each do |font_file| item = @book.add_item font_file, content: File.join(DATA_DIR, font_file) - item.set_media_type 'application/vnd.ms-opentype' end end nil |
