1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 13:00:08 +00:00

fix build

This commit is contained in:
Lu Wang 2013-09-23 16:47:16 +08:00
parent 9cb4d8b637
commit 8fd29cd94c

View File

@ -192,7 +192,11 @@ string HTMLRenderer::dump_type3_font (GfxFont * font, FontInfo & info)
FT_Library ft_lib;
FT_Init_FreeType(&ft_lib);
CairoFontEngine font_engine(ft_lib);
#if POPPLER_OLDER_THAN_0_23_0
auto * cur_font = font_engine.getFont(font, cur_doc, true);
#else
auto * cur_font = font_engine.getFont(font, cur_doc, true, xref);
#endif
auto used_map = preprocessor.get_code_map(hash_ref(font->getID()));
//calculate transformed metrics