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

always use ttf fonts

This commit is contained in:
Lu Wang 2012-08-06 00:41:17 +08:00
parent 215b377b88
commit bf5ab11639
4 changed files with 4 additions and 4 deletions

2
bin/convert.pe Normal file
View File

@ -0,0 +1,2 @@
Open($1);
Generate($1:r+".ttf");

View File

@ -7,6 +7,6 @@ SCRIPT_DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"/
${SCRIPT_DIR}/pdftohtmlEX $* ${SCRIPT_DIR}/pdftohtmlEX $*
for f in *.pfa; do for f in *.pfa; do
fontforge -script "${SCRIPT_DIR}/pfa2otf.pe" $f fontforge -script "${SCRIPT_DIR}/convert.pe" $f 2>/dev/null
rm $f rm $f
done done

View File

@ -1,2 +0,0 @@
Open($1);
Generate($1:r+".woff");

View File

@ -714,7 +714,7 @@ void HTMLRenderer::install_embedded_type1_font (Ref * id, long long fn_id)
tmpf.write(CTM, strlen(CTM)); tmpf.write(CTM, strlen(CTM));
} }
export_remote_font(fn_id, "woff"); export_remote_font(fn_id, "ttf");
err: err:
str_obj.streamClose(); str_obj.streamClose();