mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-21 12:40:08 +00:00
tested and corrected issue 68 and 66
This commit is contained in:
parent
89c74c7b21
commit
33d2a5e176
@ -2,9 +2,13 @@
|
||||
|
||||
# This shell script builds pdf2htmlEX
|
||||
|
||||
# source ./buildScripts/reSourceVersionEnvs
|
||||
. ./buildScripts/reSourceVersionEnvs
|
||||
|
||||
echo ""
|
||||
echo "-------------------------------------------------------------------"
|
||||
echo "BUILDING pdf2htmlEX (using gcc)"
|
||||
echo " PDF2HTMLEX_VERSION = [$PDF2HTMLEX_VERSION]"
|
||||
echo "-------------------------------------------------------------------"
|
||||
|
||||
echo ""
|
||||
|
@ -6,7 +6,7 @@
|
||||
# see: https://poppler.freedesktop.org/releases.html
|
||||
# current working: 0.83.0
|
||||
|
||||
export PDF2HTMLEX_VERSION=0.18.8.alpha
|
||||
export PDF2HTMLEX_VERSION=0.18.8.rc1
|
||||
|
||||
export POPPLER_VERSION=poppler-0.89.0
|
||||
#export POPPLER_VERSION=poppler-0.88.0
|
||||
|
@ -1003,7 +1003,7 @@ void HTMLRenderer::export_remote_font(const FontInfo & info, const string & form
|
||||
{
|
||||
string css_turn_off_ligatures = "";
|
||||
if (param.turn_off_ligatures) {
|
||||
css_turn_off_ligatures = "font-variant-ligatures:none;font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "hlig" 0, "calt" 0;";
|
||||
css_turn_off_ligatures = "font-variant-ligatures:none;font-feature-settings: \"liga\" 0, \"clig\" 0, \"dlig\" 0, \"hlig\" 0, \"calt\" 0;";
|
||||
}
|
||||
string css_font_format;
|
||||
if(format == "ttf")
|
||||
@ -1059,7 +1059,6 @@ void HTMLRenderer::export_remote_font(const FontInfo & info, const string & form
|
||||
|
||||
f_css.fs << ")"
|
||||
<< "format(\"" << css_font_format << "\");"
|
||||
<< css_turn_off_ligatures
|
||||
<< "}" // end of @font-face
|
||||
<< "." << CSS::FONT_FAMILY_CN << info.id << "{"
|
||||
<< "font-family:" << CSS::FONT_FAMILY_CN << info.id << ";"
|
||||
@ -1067,6 +1066,7 @@ void HTMLRenderer::export_remote_font(const FontInfo & info, const string & form
|
||||
<< "font-style:normal;"
|
||||
<< "font-weight:normal;"
|
||||
<< "visibility:visible;"
|
||||
<< css_turn_off_ligatures
|
||||
<< "}"
|
||||
<< endl;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user