diff options
author | Simon Glass <sjg@chromium.org> | 2025-04-02 06:29:39 +1300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-05-02 13:40:25 -0600 |
commit | cdd095e48a3934b18a3875c658cbb90d70aa8739 (patch) | |
tree | f9fdc6e187622c8ecdd1d4de1e497890107e7ce6 /boot/scene.c | |
parent | 030e53aaaa0f050a4059d4ae6297c224c9013d88 (diff) |
video: truetype: Support a limit on the width of a line
Expo needs to be able to word-wrap lines so that they are displayed as
the user expects. Add a limit on the width of each line and support this
in the measurement algorithm.
Add a log category to truetype while we are here.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'boot/scene.c')
-rw-r--r-- | boot/scene.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/boot/scene.c b/boot/scene.c index d3ae5816bef..fb82ffe768c 100644 --- a/boot/scene.c +++ b/boot/scene.c @@ -298,7 +298,7 @@ int scene_obj_get_hw(struct scene *scn, uint id, int *widthp) } ret = vidconsole_measure(scn->expo->cons, txt->font_name, - txt->font_size, str, &bbox, NULL); + txt->font_size, str, -1, &bbox, NULL); if (ret) return log_msg_ret("mea", ret); if (widthp) |