From adaaf31a3dba6f3073cacdb64b60bcc6f8d1bfdf Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 9 May 2018 23:38:53 +0100 Subject: Speculative attempt to disable sub-pixel anti-aliasing (i.e. ClearType) when rendering subtitles for preview or burn-in. --- src/lib/render_subtitles.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib') diff --git a/src/lib/render_subtitles.cc b/src/lib/render_subtitles.cc index 5f587c313..ad2c10a06 100644 --- a/src/lib/render_subtitles.cc +++ b/src/lib/render_subtitles.cc @@ -238,6 +238,11 @@ render_line (list subtitles, list > fonts, dcp: layout->set_alignment (Pango::ALIGN_LEFT); context->set_line_width (1); + context->set_antialias (Cairo::ANTIALIAS_GRAY); + Cairo::FontOptions fo; + context->get_font_options (fo); + fo.set_antialias (Cairo::ANTIALIAS_GRAY); + context->set_font_options (fo); /* Compute fade factor */ float fade_factor = 1; -- cgit v1.2.3