diff --git a/Common/gmshPopplerWrapper.cpp b/Common/gmshPopplerWrapper.cpp index ab12bbf6ef28282349e848999984704799c67e34..63f580d629f8fa482d6c946f23aa9ea1e2bc265b 100644 --- a/Common/gmshPopplerWrapper.cpp +++ b/Common/gmshPopplerWrapper.cpp @@ -59,8 +59,11 @@ GLuint gmshPopplerWrapper::getTextureForPage(double xres, std::map<int,GLuint>::iterator it = _pages2textures.find(iPage); if (it != _pages2textures.end()) return it->second; if (!_currentDoc) return 0; + poppler::page *page = _currentDoc->create_page(iPage); poppler::page_renderer pr; + pr.set_render_hint(poppler::page_renderer::text_antialiasing, true); + pr.set_render_hint(poppler::page_renderer::antialiasing, true); poppler::image im = pr.render_page(page, xres, yres, -1, -1, -1); _w = im.width(); _h = im.height();