<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dcpomatic/src/lib/render_text.cc, branch main</title>
<subtitle>DCP-o-matic DCP tools</subtitle>
<id>https://git.carlh.net/cgit/dcpomatic/atom?h=main</id>
<link rel='self' href='https://git.carlh.net/cgit/dcpomatic/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/'/>
<updated>2025-12-30T11:22:30Z</updated>
<entry>
<title>Extract text_positions_close().</title>
<updated>2025-12-30T11:22:30Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2025-12-28T00:21:04Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=931aa567b5435ae15877547b6030a583e1b19881'/>
<id>urn:sha1:931aa567b5435ae15877547b6030a583e1b19881</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Re-order cairo context scaling and pango layout setup (#2337).</title>
<updated>2025-09-26T21:57:09Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2025-09-25T10:51:43Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=492c0d0597230e680e7b59800d4f6e26d6a82e5e'/>
<id>urn:sha1:492c0d0597230e680e7b59800d4f6e26d6a82e5e</id>
<content type='text'>
This seems to fix problems where letters were scaled individually, but
their spacing didn't change (when x scale was applied).

Big thanks to user1768761
https://stackoverflow.com/questions/58528024/pangocairo-shows-cluttered-text-when-cairo-context-is-scaled
</content>
</entry>
<entry>
<title>Fix cut-off subtitle shadows.</title>
<updated>2025-07-08T20:11:35Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2025-07-04T08:32:32Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=bb07c53c501365b6380ae2c7e1a149b955d13d4d'/>
<id>urn:sha1:bb07c53c501365b6380ae2c7e1a149b955d13d4d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make shadow offset proportional to the target size.</title>
<updated>2025-07-08T20:11:35Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2025-07-04T08:32:22Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=bb5319c7dc0c91815750eafe771303f5fffbe30b'/>
<id>urn:sha1:bb5319c7dc0c91815750eafe771303f5fffbe30b</id>
<content type='text'>
Otherwise it looks further away in the preview than in in the final DCP
(if the preview is smaller).
</content>
</entry>
<entry>
<title>Add dcp_pixels_to_pixels().</title>
<updated>2025-07-08T20:11:35Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2025-07-04T08:29:16Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=57a83f853fc45be5361ec002acc964c1ed8b89b4'/>
<id>urn:sha1:57a83f853fc45be5361ec002acc964c1ed8b89b4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Return float from border_width_for_subtitle().</title>
<updated>2025-07-08T20:11:35Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2025-07-04T08:27:02Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=3f8df1be4983cc1ce7547d9bbb89114bf281d9b7'/>
<id>urn:sha1:3f8df1be4983cc1ce7547d9bbb89114bf281d9b7</id>
<content type='text'>
We're already using ceil on the return value everywhere we need to, as
far as I can see.
</content>
</entry>
<entry>
<title>White space: render_text.cc.</title>
<updated>2025-07-04T07:49:19Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2025-07-04T07:49:19Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=1650465106b7c20a7cc9ae5eec1cf9bf406c1dcf'/>
<id>urn:sha1:1650465106b7c20a7cc9ae5eec1cf9bf406c1dcf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Bump libdcp for raw_convert changes.</title>
<updated>2025-01-05T11:58:13Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2024-12-30T14:43:14Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=b03f2277a205ff7e7cdaa12c6e52322ea474a7af'/>
<id>urn:sha1:b03f2277a205ff7e7cdaa12c6e52322ea474a7af</id>
<content type='text'>
raw_convert&lt;string&gt; is gone, so here we use fmt::{to_string,format} instead.
Other raw_converts now use fast_float.
</content>
</entry>
<entry>
<title>Fix warning from pango about letter spacing not being an integer.</title>
<updated>2024-06-24T20:36:08Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2024-06-24T20:36:08Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=4c357cde281e13c8933e6ba669764a56c4a4693f'/>
<id>urn:sha1:4c357cde281e13c8933e6ba669764a56c4a4693f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Render subtitles using show_in_cairo_context() instead of add_to_cairo_context().</title>
<updated>2024-05-30T17:59:06Z</updated>
<author>
<name>Carl Hetherington</name>
<email>cth@carlh.net</email>
</author>
<published>2024-05-19T20:33:44Z</published>
<link rel='alternate' type='text/html' href='https://git.carlh.net/cgit/dcpomatic/commit/?id=09f35415304afc127f50edfe4357a28c5a0e2ff9'/>
<id>urn:sha1:09f35415304afc127f50edfe4357a28c5a0e2ff9</id>
<content type='text'>
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.
</content>
</entry>
</feed>
