aboutsummaryrefslogtreecommitdiff
path: root/boot/cedit.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-10-01 19:13:18 -0600
committerTom Rini <trini@konsulko.com>2023-10-11 15:43:55 -0400
commit9e55d09596a5b6ec1f8cbfc3e97d29b9929dee86 (patch)
tree60d65c291d5979adf7595f8d3f41aa29a63facde /boot/cedit.c
parent39ee32166f607d4e30a74d46f82adb39e4134ec4 (diff)
video: Allow obtaining the nominal size of a string size
At present there is a method for measuring text, but if the actual text string is not known, it cannot be used. For text editor we want to set the size of the entry box to cover the expected text size. Add the concept of a 'norminal' size with a method to calculate that for the vidconsole. If the method is not implemented, fall back to using the font size, which is sufficient for fixed-width fonts. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'boot/cedit.c')
0 files changed, 0 insertions, 0 deletions