Skip to content

Commit

Permalink
Hack to get text to render right
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Jun 19, 2017
1 parent e9c795f commit 51dcfb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/font/text.cpp
Expand Up @@ -676,6 +676,10 @@ void pango_text::render(PangoLayout& layout, const PangoRectangle& rect, const s
);

pango_cairo_show_layout(cr.get(), &layout);

// HACK: 'draw' text a second time in order to get desired output when copying w/ alpha blending.
// See bug #1744 for more info.
pango_cairo_show_layout(cr.get(), &layout);
}

void pango_text::rerender(const bool force)
Expand Down

0 comments on commit 51dcfb7

Please sign in to comment.