mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-07-07 18:30:34 +00:00
working on relaxing c++11 dependency
This commit is contained in:
parent
5040cf0273
commit
3de65a5156
|
@ -52,7 +52,6 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wunused-function")
|
|||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ggdb")
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wunused-function")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
|
||||
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ggdb")
|
||||
|
||||
|
|
|
@ -11,10 +11,12 @@
|
|||
#include <string>
|
||||
#include <map>
|
||||
|
||||
static constexpr double EPS = 1e-6;
|
||||
static const void * nullptr = NULL;
|
||||
|
||||
static const double EPS = 1e-6;
|
||||
extern const double id_matrix[6];
|
||||
|
||||
static constexpr double DEFAULT_DPI = 72.0;
|
||||
static const double DEFAULT_DPI = 72.0;
|
||||
|
||||
extern const std::map<std::string, std::string> BASE_14_FONT_CSS_FONT_MAP;
|
||||
extern const std::map<std::string, std::string> GB_ENCODED_FONT_NAME_MAP;
|
||||
|
|
|
@ -173,7 +173,7 @@ void HTMLRenderer::embed_font(const path & filepath, GfxFont * font, FontInfo &
|
|||
|
||||
Gfx8BitFont * font_8bit = nullptr;
|
||||
|
||||
info.use_tounicode = ((suffix == ".ttf") || (param->always_apply_tounicode));
|
||||
info.use_tounicode = ((suffix == ".ttf") || (param->tounicode >= 0));
|
||||
|
||||
if(!get_metric_only)
|
||||
{
|
||||
|
|
|
@ -256,7 +256,7 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
static constexpr const char * base64_encoding = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||
static const char * base64_encoding = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||
istream * in;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user