aboutsummaryrefslogtreecommitdiff
path: root/include/video_console.h
diff options
context:
space:
mode:
authorSimon Glass2022-10-06 08:36:16 -0600
committerAnatolij Gustschin2022-10-30 20:01:40 +0100
commit430e1676a76bf8b7112c64e19cf64b988c281ee0 (patch)
tree97d40e3ae1f3305177622818c23d7195b3370e22 /include/video_console.h
parent3f425f9ca75c8d1938579044fde37a6f7d5abe16 (diff)
video: Add commands to list and change fonts
Add a new 'font' command which allows the fonts to be listed as well as selecting a different font and size. Allow the test to run on sandbox, where multiple font/size combinations are supported, as well as sandbox_flattree, where they are not. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/video_console.h')
-rw-r--r--include/video_console.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/video_console.h b/include/video_console.h
index bef926cd433..d755eb73cf2 100644
--- a/include/video_console.h
+++ b/include/video_console.h
@@ -247,6 +247,15 @@ void vidconsole_list_fonts(void);
*/
int vidconsole_select_font(struct udevice *dev, const char *name, uint size);
+/**
+ * vidconsole_get_font() - get the current font name and size
+ *
+ * @dev: vidconsole device
+ * @sizep: Place to put the font size (nominal height in pixels)
+ * Returns: Current font name
+ */
+const char *vidconsole_get_font(struct udevice *dev, uint *sizep);
+
#ifdef CONFIG_VIDEO_COPY
/**
* vidconsole_sync_copy() - Sync back to the copy framebuffer