summaryrefslogtreecommitdiff
path: root/src/lib/kdm_cli.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-05-19 22:33:44 +0200
committerCarl Hetherington <cth@carlh.net>2024-05-30 19:59:06 +0200
commit09f35415304afc127f50edfe4357a28c5a0e2ff9 (patch)
tree7f55e8e3a0eaac33e3378ec730b2fe015f19c962 /src/lib/kdm_cli.cc
parent5708ccdd531c72ff9e43106d354464adf6afa699 (diff)
Render subtitles using show_in_cairo_context() instead of add_to_cairo_context().
This helps with #2813 and should fix #2474. We started using add_to_cairo_context() again in 72c3a5f0f32f553a1f8abee2494f31d29b976383 because the rendering looked better. However colour changes within lines cannot easily be rendered using add_to_cairo_context() it seems, as the text is just added as a path and then you can stroke/fill it with a single colour. I hope that this change, which reverts 72c3a5 but also adds some calls to enable hinting and use better anti-aliasing, looks OK. I looked at some white-on-black subs close-up and the hinting seems to help.
Diffstat (limited to 'src/lib/kdm_cli.cc')
0 files changed, 0 insertions, 0 deletions