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 Mar 13, 2018
1 parent 293522e commit 0ba0178
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/font/text.cpp
Expand Up @@ -675,6 +675,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 0ba0178

Please sign in to comment.