diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-05-09 23:38:53 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-05-09 23:38:53 +0100 |
| commit | adaaf31a3dba6f3073cacdb64b60bcc6f8d1bfdf (patch) | |
| tree | db3113e2ba9121994e9c56a45c0770ff7cb6baef /src/lib | |
| parent | 30c445abba460befab9a922547c470f1feed6e8f (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.cc | 5 |
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; |
