diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-01-20 23:53:45 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-02-27 14:47:25 +0100 |
| commit | eef23108ceb07b56cde9f0393aeaca5b429444e6 (patch) | |
| tree | 9c4a2a70f6b136bfd5768aa439962ab7d9e53bac /src/lib/render_text.h | |
| parent | b1583bb7f1821f466fb2cb18af1259c62adc75fa (diff) | |
Add bounding_box().
Diffstat (limited to 'src/lib/render_text.h')
| -rw-r--r-- | src/lib/render_text.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 <dcp/util.h> #include <memory> @@ -33,6 +34,7 @@ namespace dcpomatic { std::string marked_up (std::list<StringText> subtitles, int target_height, float fade_factor, std::string font_name); std::list<PositionImage> render_text (std::list<StringText>, dcp::Size, dcpomatic::DCPTime, int); +std::list<dcpomatic::Rect<int>> bounding_box(std::list<StringText> subtitles, dcp::Size target); class FontMetrics |
