summaryrefslogtreecommitdiff
path: root/cmd/font.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-03-07 20:54:01 +0300
committerTom Rini <trini@konsulko.com>2023-03-07 20:54:01 +0300
commit70ed05ce6c051e55e126e67e72ab20409134c953 (patch)
treec18e478b83cb9adcc703c060a89d6d00028f15fe /cmd/font.c
parent36bb622df5ba391271043416c234dd5544a0199f (diff)
parent72471620e82758b6cbdb9f70d775c0c18b043794 (diff)
downloadu-boot-70ed05ce6c051e55e126e67e72ab20409134c953.tar.xz
Merge tag 'next-20230307' of https://source.denx.de/u-boot/custodians/u-boot-video into next
- video console refactoring and optimization - support for fonts wider than 1 byte - use named header for 8x16 font data - support multiple fonts configuration - move get_font_size() to truetype driver ops - support font size configuration at runtime - add 16x32 Terminus font from linux - add 12x22 Sun font from linux - add 12x22 console simple font test
Diffstat (limited to 'cmd/font.c')
-rw-r--r--cmd/font.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd/font.c b/cmd/font.c
index 7b4347f32b..fe2d65caaf 100644
--- a/cmd/font.c
+++ b/cmd/font.c
@@ -61,7 +61,11 @@ static int do_font_size(struct cmd_tbl *cmdtp, int flag, int argc,
if (uclass_first_device_err(UCLASS_VIDEO_CONSOLE, &dev))
return CMD_RET_FAILURE;
- font_name = vidconsole_get_font_size(dev, &size);
+ ret = vidconsole_get_font_size(dev, &font_name, &size);
+ if (ret) {
+ printf("Failed (error %d)\n", ret);
+ return CMD_RET_FAILURE;
+ }
size = dectoul(argv[1], NULL);