1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +00:00

Silent Chrome warning by using MIME type font/opentype

This commit is contained in:
Hongliang TIAN 2012-09-11 21:21:38 +08:00 committed by Lu Wang
parent 19e4b97cf6
commit 6579b54309
2 changed files with 1 additions and 4 deletions

View File

@ -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);

View File

@ -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
{