mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
fix build
This commit is contained in:
parent
9cb4d8b637
commit
8fd29cd94c
@ -192,7 +192,11 @@ string HTMLRenderer::dump_type3_font (GfxFont * font, FontInfo & info)
|
|||||||
FT_Library ft_lib;
|
FT_Library ft_lib;
|
||||||
FT_Init_FreeType(&ft_lib);
|
FT_Init_FreeType(&ft_lib);
|
||||||
CairoFontEngine font_engine(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);
|
auto * cur_font = font_engine.getFont(font, cur_doc, true, xref);
|
||||||
|
#endif
|
||||||
auto used_map = preprocessor.get_code_map(hash_ref(font->getID()));
|
auto used_map = preprocessor.get_code_map(hash_ref(font->getID()));
|
||||||
|
|
||||||
//calculate transformed metrics
|
//calculate transformed metrics
|
||||||
|
Loading…
Reference in New Issue
Block a user