Substantial reworking of the font rendering code to measure
authorCarl Hetherington <cth@carlh.net>
Thu, 23 Apr 2020 21:10:46 +0000 (23:10 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 23 Apr 2020 22:46:31 +0000 (00:46 +0200)
commit87d5a977da0696fbe73b96b2679b7cbb471e7255
tree424dd2fad920022826cdc440c307c0927888ef4a
parentc5301d109be97bf85ce343f7d9356a2262ce0ef6
Substantial reworking of the font rendering code to measure
the size of the text before rendering, thereby creating correctly-
sized output images (rather than ones with guesses on height and
with the full target width).

This uses some potentially dubious behaviour described here
https://stackoverflow.com/questions/31788577/create-pango-layout-before-cairo-surface
and could cause any number of problems.

The advantages are that a) it should be a little more efficient and
b) the images created for the subtitle analysis code are useful.
src/lib/render_text.cc