From ca5324c0e60cd0baa4710a1386ae71746fc6bf54 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Sat, 18 Jan 2014 15:16:02 +0800 Subject: [PATCH] show message about old version of fontforge --- src/pdf2htmlEX.cc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/pdf2htmlEX.cc b/src/pdf2htmlEX.cc index 9c7282c..257eba5 100644 --- a/src/pdf2htmlEX.cc +++ b/src/pdf2htmlEX.cc @@ -1,6 +1,6 @@ // pdf2htmlEX.cc // -// Copyright (C) 2012,2013 Lu Wang +// Copyright (C) 2012-2014 Lu Wang #include #include @@ -56,7 +56,7 @@ void show_usage_and_exit(const char * dummy = nullptr) void show_version_and_exit(const char * dummy = nullptr) { cerr << "pdf2htmlEX version " << PDF2HTMLEX_VERSION << endl; - cerr << "Copyright 2012,2013 Lu Wang and other contributers" << endl; + cerr << "Copyright 2012-2014 Lu Wang and other contributers" << endl; cerr << "Libraries: " << endl; cerr << " poppler " << POPPLER_VERSION << endl; cerr << " libfontforge " << ffw_get_version() << endl; @@ -75,6 +75,14 @@ void show_version_and_exit(const char * dummy = nullptr) cerr << " svg"; #endif cerr << endl; + + // TODO: define constants + if(ffw_get_version() < 20130101LL) + { + cerr << endl + << "Warning: pdf2htmlEX has been built with a too old version of Fontforge, which is not supported." << endl; + } + cerr << endl; exit(EXIT_SUCCESS); }