From eef23108ceb07b56cde9f0393aeaca5b429444e6 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 20 Jan 2023 23:53:45 +0100 Subject: Add bounding_box(). --- src/lib/render_text.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/render_text.h') diff --git a/src/lib/render_text.h b/src/lib/render_text.h index 762d79446..bceee964e 100644 --- a/src/lib/render_text.h +++ b/src/lib/render_text.h @@ -19,8 +19,9 @@ */ -#include "position_image.h" #include "dcpomatic_time.h" +#include "position_image.h" +#include "rect.h" #include "string_text.h" #include #include @@ -33,6 +34,7 @@ namespace dcpomatic { std::string marked_up (std::list subtitles, int target_height, float fade_factor, std::string font_name); std::list render_text (std::list, dcp::Size, dcpomatic::DCPTime, int); +std::list> bounding_box(std::list subtitles, dcp::Size target); class FontMetrics -- cgit v1.2.3