Tidy up font rendering for subtitles.
authorCarl Hetherington <cth@carlh.net>
Wed, 6 Jul 2022 08:08:55 +0000 (10:08 +0200)
committerCarl Hetherington <cth@carlh.net>
Wed, 20 Jul 2022 08:22:55 +0000 (10:22 +0200)
commit58c63c02bc26209f42f42bccbe4a587f9df6f05f
tree4f9a0cb2285d5e23a164e647e20eb934962b8c81
parenta6507c95d19b434275e2a28f0bc37f06912f467f
Tidy up font rendering for subtitles.

Here was use get_ink_extents() rather than get_pixel_size() to
find out how big the rendered subtitle will be, then use the
x/y values of this extents rectangle to offset the rendering
within the image.  This allows the removal of some hacks to make
accents visible.
src/lib/render_text.cc