From 6579b54309fb0b1e74b3c51b0e81a3a73f1c2375 Mon Sep 17 00:00:00 2001 From: Hongliang TIAN Date: Tue, 11 Sep 2012 21:21:38 +0800 Subject: [PATCH] Silent Chrome warning by using MIME type font/opentype --- share/tail.html | 3 --- src/HTMLRenderer/export.cc | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/share/tail.html b/share/tail.html index 5ef9d9c..bb095dd 100644 --- a/share/tail.html +++ b/share/tail.html @@ -25,8 +25,6 @@ $(function() { // Selectively rendering of pages that are visible or will be visible function selectiveRender() { - console.debug('render'); - var first = 0, last = l - 1, H = $main.height(); @@ -36,7 +34,6 @@ $(function() { // Find the last visible page while(last >= 0 && !isPageVisible(last, H)) last--; - console.debug('visible from='+first+", to="+last); // Set invisible setVisibilities(first > 0 ? first-1 : first, last < l -1 ? last + 1 : last, true); diff --git a/src/HTMLRenderer/export.cc b/src/HTMLRenderer/export.cc index ed7af33..3ae631b 100644 --- a/src/HTMLRenderer/export.cc +++ b/src/HTMLRenderer/export.cc @@ -21,7 +21,7 @@ void HTMLRenderer::export_remote_font(const FontInfo & info, const string & suff auto fn = str_fmt("f%llx%s", info.id, suffix.c_str()); if(param->single_html) { - allcss_fout << "'data:font/" << fontfileformat << ";base64," << base64stream(ifstream(tmp_dir + "/" + (char*)fn, ifstream::binary)) << "'"; + allcss_fout << "'data:font/opentype;base64," << base64stream(ifstream(tmp_dir + "/" + (char*)fn, ifstream::binary)) << "'"; } else {