Skip to content
Snippets Groups Projects
Commit db455327 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

use antiliasing

parent 8f157b9a
No related branches found
No related tags found
No related merge requests found
...@@ -59,8 +59,11 @@ GLuint gmshPopplerWrapper::getTextureForPage(double xres, ...@@ -59,8 +59,11 @@ GLuint gmshPopplerWrapper::getTextureForPage(double xres,
std::map<int,GLuint>::iterator it = _pages2textures.find(iPage); std::map<int,GLuint>::iterator it = _pages2textures.find(iPage);
if (it != _pages2textures.end()) return it->second; if (it != _pages2textures.end()) return it->second;
if (!_currentDoc) return 0; if (!_currentDoc) return 0;
poppler::page *page = _currentDoc->create_page(iPage); poppler::page *page = _currentDoc->create_page(iPage);
poppler::page_renderer pr; 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); poppler::image im = pr.render_page(page, xres, yres, -1, -1, -1);
_w = im.width(); _w = im.width();
_h = im.height(); _h = im.height();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment