mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-21 20:50:07 +00:00
updated fontforge to 20200314
This commit is contained in:
parent
ece34e216f
commit
7b5780ea83
@ -6,50 +6,25 @@ source buildScripts/reSourceVersionEnvs
|
||||
|
||||
echo ""
|
||||
echo "-------------------------------------------------------------------"
|
||||
echo "BUILDING FontForge"
|
||||
echo "BUILDING FontForge (using CMake)"
|
||||
echo "-------------------------------------------------------------------"
|
||||
echo ""
|
||||
|
||||
# This is a work-around to fix TravisCI's declaration of PYTHON_CFLAGS
|
||||
# which is then honoured exactly as is by the fontforge bootstrap and
|
||||
# configure steps.
|
||||
#
|
||||
# see: https://github.com/travis-ci/travis-ci/issues/5301 (unfixed)
|
||||
#
|
||||
|
||||
echo ""
|
||||
echo "PYTHON_CFLAGS:"
|
||||
echo "-------------------------------"
|
||||
export PYTHON_CFLAGS="$(python3-config --cflags) $PYTHON_CFLAGS"
|
||||
echo $PYTHON_CFLAGS
|
||||
echo "-------------------------------"
|
||||
echo ""
|
||||
echo ""
|
||||
echo "PYTHON_LIBS:"
|
||||
echo "-------------------------------"
|
||||
export PYTHON_LIBS="$(python3-config --ldflags) $PYTHON_LIBS"
|
||||
echo $PYTHON_LIBS
|
||||
echo "-------------------------------"
|
||||
echo ""
|
||||
|
||||
# Can use "configure --disable-silent-rules" to debug configuration/make
|
||||
# problems
|
||||
#
|
||||
cd fontforge
|
||||
|
||||
./bootstrap
|
||||
mkdir build
|
||||
|
||||
./configure \
|
||||
--prefix=$PDF2HTMLEX_PREFIX \
|
||||
--enable-python-scripting=3 \
|
||||
--disable-dependency-tracking \
|
||||
--disable-silent-rules \
|
||||
--disable-python-scripting \
|
||||
--disable-python-extension \
|
||||
--disable-shared \
|
||||
--enable-static \
|
||||
--with-pic \
|
||||
--without-x
|
||||
cd build
|
||||
|
||||
cmake \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DBUILD_SHARED_LIBS:BOOL=OFF \
|
||||
-DCMAKE_INSTALL_PREFIX=$PDF2HTMLEX_PREFIX \
|
||||
-DENABLE_GUI:BOOL=OFF \
|
||||
-DENABLE_X11:BOOL=OFF \
|
||||
-DENABLE_PYTHON_SCRIPTING:BOOL=OFF \
|
||||
-DENABLE_PYTHON_EXTENSION:AUTO=OFF \
|
||||
..
|
||||
|
||||
# Apply any patches required for fontforge raw sources before we make
|
||||
#
|
||||
|
@ -34,14 +34,10 @@ export PDF2HTMLEX_PREFIX=/usr/local
|
||||
|
||||
./buildScripts/buildPoppler || { echo 'buildPoppler FAILED' ; exit 1 ; }
|
||||
|
||||
#./buildScripts/installPoppler || { echo 'installPoppler FAILED' ; exit 1 ; }
|
||||
|
||||
./buildScripts/getFontforge || { echo 'getFontforge FAILED' ; exit 1 ; }
|
||||
|
||||
./buildScripts/buildFontforge || { echo 'buildFontforge FAILED' ; exit 1 ; }
|
||||
|
||||
#./buildScripts/installFontforge || { echo 'installFontforge FAILED' ; exit 1 ; }
|
||||
|
||||
./buildScripts/buildPdf2htmlEX || { echo 'buildPdf2htmlEX FAILED' ; exit 1 ; }
|
||||
|
||||
./buildScripts/installPdf2htmlEX || { echo 'installPdf2htmlEX FAILED' ; exit 1 ; }
|
||||
|
@ -20,8 +20,8 @@ export POPPLER_VERSION=poppler-0.83.0
|
||||
# see: https://github.com/fontforge/fontforge/releases
|
||||
# current working: 20190801
|
||||
|
||||
#export FONTFORGE_VERSION=20200314
|
||||
export FONTFORGE_VERSION=20190801
|
||||
export FONTFORGE_VERSION=20200314
|
||||
#export FONTFORGE_VERSION=20190801
|
||||
#export FONTFORGE_VERSION=20190413
|
||||
#export FONTFORGE_VERSION=20190413
|
||||
#export FONTFORGE_VERSION=20190317
|
||||
|
@ -73,9 +73,7 @@ include_directories(
|
||||
include_directories(${FONTFORGE_INCLUDE_DIRS})
|
||||
link_directories(${FONTFORGE_LIBRARY_DIRS})
|
||||
set(FONTFORGE_LIBRARIES ${FONTFORGE_LIBRARIES}
|
||||
${CMAKE_SOURCE_DIR}/../fontforge/fontforge/.libs/libfontforge.a
|
||||
${CMAKE_SOURCE_DIR}/../fontforge/Unicode/.libs/libgunicode.a
|
||||
${CMAKE_SOURCE_DIR}/../fontforge/gutils/.libs/libgutils.a
|
||||
${CMAKE_SOURCE_DIR}/../fontforge/build/lib/libfontforge.a
|
||||
)
|
||||
|
||||
set(PDF2HTMLEX_LIBS ${PDF2HTMLEX_LIBS}
|
||||
|
@ -63,9 +63,8 @@ void show_version_and_exit(const char * dummy = nullptr)
|
||||
cerr << "Copyright 2012-2015 Lu Wang <coolwanglu@gmail.com> and other contributors" << endl;
|
||||
cerr << "Libraries: " << endl;
|
||||
cerr << " poppler " << POPPLER_VERSION << endl;
|
||||
cerr << " libfontforge " << ffwVersionInfo->majorVersion << "." <<
|
||||
ffwVersionInfo->minorVersion << "." << ffwVersionInfo->gitVersion << endl;
|
||||
cerr << " libfontforge (date) " << ffwVersionInfo->versionDate << endl;
|
||||
cerr << " libfontforge (git) " << ffwVersionInfo->gitVersion << endl;
|
||||
#if ENABLE_SVG
|
||||
cerr << " cairo " << cairo_version_string() << endl;
|
||||
#endif
|
||||
|
@ -157,8 +157,8 @@ void setupSignalHandler(
|
||||
detailInfo = detailInfo + "\n";
|
||||
detailInfo = detailInfo + "Libraries:\n" ;
|
||||
detailInfo = detailInfo + " poppler " + POPPLER_VERSION + "\n";
|
||||
detailInfo = detailInfo + " libfontforge " + ffwVersionInfo->majorVersion + "." + ffwVersionInfo->minorVersion + "." + ffwVersionInfo->gitVersion + "\n";
|
||||
detailInfo = detailInfo + " libfontforge (date) " + ffwVersionInfo->versionDate + "\n";
|
||||
detailInfo = detailInfo + " libfontforge (git) " + ffwVersionInfo->gitVersion + "\n";
|
||||
#if ENABLE_SVG
|
||||
detailInfo = detailInfo + " cairo " + cairo_version_string() + "\n";
|
||||
#endif
|
||||
|
@ -18,21 +18,21 @@
|
||||
|
||||
#include "SignalHandler.h"
|
||||
|
||||
#include "ffw.h" // needed for:
|
||||
#include "gfile.h" // FindProgDir
|
||||
#include "fontforge-version-extras.h" // FONTFORGE_GIT_VERSION
|
||||
#include "fontforge/autowidth.h" // FVRemoveKerns
|
||||
#include "fontforge/bitmapchar.h" // SFReplaceEncodingBDFProps
|
||||
#include "fontforge/cvimages.h" // FVImportImages
|
||||
#include "fontforge/encoding.h" // (helpful as we have a name conflict)
|
||||
#include "fontforge/fvfonts.h" // SFFindSlot
|
||||
#include "fontforge/namelist.h" // UniFromName
|
||||
#include "fontforge/savefont.h" // GenerateScript
|
||||
#include "fontforge/splineorder2.h" // SFConvertToOrder2
|
||||
#include "fontforge/splineutil.h" // AltUniFree
|
||||
#include "fontforge/splineutil2.h" // SplineFontNew
|
||||
#include "fontforge/start.h" // InitSimpleStuff
|
||||
#include "fontforge/tottf.h" // SFDefaultOS2Info
|
||||
#include "ffw.h" // needed for:
|
||||
#include "gfile.h" // FindProgDir
|
||||
#include "fontforge-version-extras.h" // FONTFORGE_GIT_VERSION
|
||||
#include "fontforge/autowidth.h" // FVRemoveKerns
|
||||
#include "fontforge/bitmapchar.h" // SFReplaceEncodingBDFProps
|
||||
#include "fontforge/cvimages.h" // FVImportImages
|
||||
#include "fontforge/encoding.h" // (helpful as we have a name conflict)
|
||||
#include "fontforge/fvfonts.h" // SFFindSlot
|
||||
#include "fontforge/namelist.h" // UniFromName
|
||||
#include "fontforge/savefont.h" // GenerateScript
|
||||
#include "fontforge/splineorder2.h" // SFConvertToOrder2
|
||||
#include "fontforge/splineutil.h" // AltUniFree
|
||||
#include "fontforge/splineutil2.h" // SplineFontNew
|
||||
#include "fontforge/start.h" // InitSimpleStuff
|
||||
#include "fontforge/tottf.h" // SFDefaultOS2Info
|
||||
|
||||
static real EPS=1e-6;
|
||||
|
||||
@ -128,8 +128,6 @@ static FFWVersionInfo ffwVersionInfo;
|
||||
const FFWVersionInfo* ffw_get_version_info(void)
|
||||
{
|
||||
ffwVersionInfo.gitVersion = FONTFORGE_GIT_VERSION;
|
||||
ffwVersionInfo.majorVersion = xstr(FONTFORGE_VERSION_MAJOR);
|
||||
ffwVersionInfo.minorVersion = xstr(FONTFORGE_VERSION_MINOR);
|
||||
ffwVersionInfo.versionDate = FONTFORGE_VERSION;
|
||||
|
||||
return &ffwVersionInfo;
|
||||
@ -528,7 +526,16 @@ void ffw_import_svg_glyph(int code, const char * filename, double ox, double oy,
|
||||
|
||||
memset(cur_fv->selected, 0, cur_fv->map->enccount);
|
||||
cur_fv->selected[enc] = 1;
|
||||
int ok = FVImportImages(cur_fv, (char*)filename, fv_svg, 0, -1);
|
||||
ImportParams ip;
|
||||
InitImportParams(&ip);
|
||||
int ok = FVImportImages(
|
||||
cur_fv,
|
||||
(char*)filename,
|
||||
fv_svg,
|
||||
0 /*toback*/,
|
||||
true /*preclear*/,
|
||||
&ip
|
||||
);
|
||||
if(!ok)
|
||||
err("Import SVG glyph failed");
|
||||
|
||||
|
@ -26,8 +26,6 @@ void ffw_finalize(void);
|
||||
|
||||
typedef struct ffw_version_info {
|
||||
const char* gitVersion;
|
||||
const char* majorVersion;
|
||||
const char* minorVersion;
|
||||
const char* versionDate;
|
||||
} FFWVersionInfo ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user