mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
updated fontforge build script to not build xwindows ui
This commit is contained in:
parent
4a0a48cf69
commit
7e20d11b0a
@ -17,7 +17,11 @@ echo ""
|
|||||||
# see: https://github.com/travis-ci/travis-ci/issues/5301 (unfixed)
|
# see: https://github.com/travis-ci/travis-ci/issues/5301 (unfixed)
|
||||||
#
|
#
|
||||||
if [ -n "$PYTHON_CFLAGS" ] ; then
|
if [ -n "$PYTHON_CFLAGS" ] ; then
|
||||||
export PYTHON_CFLAGS="$(pkg-config --cflags python) $PYTHON_CFLAGS"
|
export PYTHON_CFLAGS="$(python3-config --cflags) $PYTHON_CFLAGS"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "$PYTHON_LIBS" ] ; then
|
||||||
|
export PYTHON_LIBS="$(python3-config --ldflags) $PYTHON_LIBS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
@ -26,21 +30,34 @@ echo "-------------------------------"
|
|||||||
echo $PYTHON_CFLAGS
|
echo $PYTHON_CFLAGS
|
||||||
echo "-------------------------------"
|
echo "-------------------------------"
|
||||||
echo ""
|
echo ""
|
||||||
|
echo ""
|
||||||
|
echo "PYTHON_LIBS:"
|
||||||
|
echo "-------------------------------"
|
||||||
|
echo $PYTHON_LIBS
|
||||||
|
echo "-------------------------------"
|
||||||
|
echo ""
|
||||||
|
|
||||||
# Can use "configure --disable-silent-rules" to debug configuration/make
|
# Can use "configure --disable-silent-rules" to debug configuration/make
|
||||||
# problems
|
# problems
|
||||||
#
|
#
|
||||||
cd fontforge
|
cd fontforge
|
||||||
|
|
||||||
./bootstrap
|
./bootstrap
|
||||||
./configure
|
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr/local \
|
||||||
|
--enable-python-scripting=3 \
|
||||||
|
--disable-dependency-tracking \
|
||||||
|
--disable-silent-rules \
|
||||||
|
--without-x
|
||||||
|
|
||||||
# Apply any patches required for fontforge raw sources before we make
|
# Apply any patches required for fontforge raw sources before we make
|
||||||
#
|
#
|
||||||
for APATCHFILE in $(ls ../patches/fontforge-$FONTFORGE_VERSION-*)
|
#for APATCHFILE in $(ls ../patches/fontforge-$FONTFORGE_VERSION-*)
|
||||||
do
|
#do
|
||||||
echo "patching fontforge using [$APATCHFILE]"
|
# echo "patching fontforge using [$APATCHFILE]"
|
||||||
patch -p 1 < $APATCHFILE
|
# patch -p 1 < $APATCHFILE
|
||||||
done
|
#done
|
||||||
|
|
||||||
make $MAKE_PARALLEL
|
make $MAKE_PARALLEL
|
||||||
|
|
||||||
|
@ -146,15 +146,18 @@ void ffw_load_font(const char * filename)
|
|||||||
assert((cur_fv == NULL) && "Previous font is not destroyed");
|
assert((cur_fv == NULL) && "Previous font is not destroyed");
|
||||||
|
|
||||||
char * _filename = strcopy(filename);
|
char * _filename = strcopy(filename);
|
||||||
SplineFont * font = LoadSplineFont(_filename, 1);
|
SplineFont * font = LoadSplineFont(_filename, of_fstypepermitted);
|
||||||
|
|
||||||
free(_filename);
|
free(_filename);
|
||||||
|
|
||||||
if(!font)
|
if(!font)
|
||||||
err("Cannot load font %s\n", filename);
|
err("Cannot load font %s\n", filename);
|
||||||
|
|
||||||
if(!font->fv)
|
|
||||||
|
if(!font->fv) {
|
||||||
|
assert(fv_interface && "fv_interface not initialized!");
|
||||||
FVAppend(_FontViewCreate(font));
|
FVAppend(_FontViewCreate(font));
|
||||||
|
}
|
||||||
|
|
||||||
assert(font->fv);
|
assert(font->fv);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user