mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-10-05 19:41:40 +00:00
Silent Chrome warning by using MIME type font/opentype
This commit is contained in:
parent
19e4b97cf6
commit
6579b54309
@ -25,8 +25,6 @@ $(function() {
|
|||||||
|
|
||||||
// Selectively rendering of pages that are visible or will be visible
|
// Selectively rendering of pages that are visible or will be visible
|
||||||
function selectiveRender() {
|
function selectiveRender() {
|
||||||
console.debug('render');
|
|
||||||
|
|
||||||
var first = 0, last = l - 1,
|
var first = 0, last = l - 1,
|
||||||
H = $main.height();
|
H = $main.height();
|
||||||
|
|
||||||
@ -36,7 +34,6 @@ $(function() {
|
|||||||
// Find the last visible page
|
// Find the last visible page
|
||||||
while(last >= 0 && !isPageVisible(last, H))
|
while(last >= 0 && !isPageVisible(last, H))
|
||||||
last--;
|
last--;
|
||||||
console.debug('visible from='+first+", to="+last);
|
|
||||||
// Set invisible
|
// Set invisible
|
||||||
setVisibilities(first > 0 ? first-1 : first,
|
setVisibilities(first > 0 ? first-1 : first,
|
||||||
last < l -1 ? last + 1 : last, true);
|
last < l -1 ? last + 1 : last, true);
|
||||||
|
@ -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());
|
auto fn = str_fmt("f%llx%s", info.id, suffix.c_str());
|
||||||
if(param->single_html)
|
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
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user