summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-05-09 23:38:53 +0100
committerCarl Hetherington <cth@carlh.net>2018-05-09 23:38:53 +0100
commitadaaf31a3dba6f3073cacdb64b60bcc6f8d1bfdf (patch)
treedb3113e2ba9121994e9c56a45c0770ff7cb6baef /src/lib
parent30c445abba460befab9a922547c470f1feed6e8f (diff)
Speculative attempt to disable sub-pixel anti-aliasing (i.e. ClearType) when rendering subtitles for preview or burn-in.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/render_subtitles.cc5
1 files changed, 5 insertions, 0 deletions
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<SubtitleString> subtitles, list<shared_ptr<Font> > 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;