diff options
| author | Simon Glass <[email protected]> | 2025-04-02 06:29:38 +1300 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-05-02 13:40:25 -0600 |
| commit | 030e53aaaa0f050a4059d4ae6297c224c9013d88 (patch) | |
| tree | 2172382c49c43bc31152a1e8fca4483e51cb7606 /include | |
| parent | a7bbc59c31f4099a8da3acccf6919b886fb590f6 (diff) | |
video: truetype: Support newlines in the measured string
It is useful to be able to embed newline characters in the string and
have the text measured into multiple lines. Add support for this.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/video_console.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/video_console.h b/include/video_console.h index ee9ce3c0e37..a0ee9ab62e9 100644 --- a/include/video_console.h +++ b/include/video_console.h @@ -244,6 +244,8 @@ struct vidconsole_ops { /** * measure() - Measure the bounding box of some text * + * The text can include newlines + * * @dev: Console device to use * @name: Font name to use (NULL to use default) * @size: Font size to use (0 to use default) @@ -342,6 +344,8 @@ int vidconsole_select_font(struct udevice *dev, const char *name, uint size); /** * vidconsole_measure() - Measure the bounding box of some text * + * The text can include newlines + * * @dev: Device to adjust * @name: Font name to use (NULL to use default) * @size: Font size to use (0 to use default) |
