mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 04:50:09 +00:00
show message about old version of fontforge
This commit is contained in:
parent
949d11ae1c
commit
ca5324c0e6
@ -1,6 +1,6 @@
|
|||||||
// pdf2htmlEX.cc
|
// pdf2htmlEX.cc
|
||||||
//
|
//
|
||||||
// Copyright (C) 2012,2013 Lu Wang <coolwanglu@gmail.com>
|
// Copyright (C) 2012-2014 Lu Wang <coolwanglu@gmail.com>
|
||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
@ -56,7 +56,7 @@ void show_usage_and_exit(const char * dummy = nullptr)
|
|||||||
void show_version_and_exit(const char * dummy = nullptr)
|
void show_version_and_exit(const char * dummy = nullptr)
|
||||||
{
|
{
|
||||||
cerr << "pdf2htmlEX version " << PDF2HTMLEX_VERSION << endl;
|
cerr << "pdf2htmlEX version " << PDF2HTMLEX_VERSION << endl;
|
||||||
cerr << "Copyright 2012,2013 Lu Wang <coolwanglu@gmail.com> and other contributers" << endl;
|
cerr << "Copyright 2012-2014 Lu Wang <coolwanglu@gmail.com> and other contributers" << endl;
|
||||||
cerr << "Libraries: " << endl;
|
cerr << "Libraries: " << endl;
|
||||||
cerr << " poppler " << POPPLER_VERSION << endl;
|
cerr << " poppler " << POPPLER_VERSION << endl;
|
||||||
cerr << " libfontforge " << ffw_get_version() << endl;
|
cerr << " libfontforge " << ffw_get_version() << endl;
|
||||||
@ -75,6 +75,14 @@ void show_version_and_exit(const char * dummy = nullptr)
|
|||||||
cerr << " svg";
|
cerr << " svg";
|
||||||
#endif
|
#endif
|
||||||
cerr << endl;
|
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;
|
cerr << endl;
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user