1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +00:00
This commit is contained in:
Lu Wang 2012-08-20 23:59:02 +02:00
parent cab38518de
commit f660464a7b
2 changed files with 6 additions and 3 deletions

View File

@ -14,8 +14,8 @@ set(PDF2HTMLEX_VERSION "0.1")
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")
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ggdb")
configure_file (src/config.h.in src/config.h)

View File

@ -8,6 +8,7 @@
*/
#include <iostream>
#include <unordered_map>
#include <boost/format.hpp>
@ -16,6 +17,8 @@
#include "HTMLRenderer.h"
#include "namespace.h"
using std::unordered_map;
long long HTMLRenderer::install_font(GfxFont * font)
{
assert(sizeof(long long) == 2*sizeof(int));
@ -125,7 +128,7 @@ void HTMLRenderer::install_embedded_font(GfxFont * font, const string & suffix,
script_fout << format("Open(%1%, 1)") % (tmp_dir / (fn + suffix)) << endl;
unordered_map<int,int> gid2code;
unordered_map<int,int> gid2cid;
auto ctu = font->getToUnicode();
int * code2GID = nullptr;