]> git.dujemihanovic.xyz Git - u-boot.git/commit
console: Allow measuring the bounding box of text
authorSimon Glass <sjg@chromium.org>
Thu, 1 Jun 2023 16:22:46 +0000 (10:22 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 14 Jul 2023 16:54:51 +0000 (12:54 -0400)
commitb828ed7d79295cfebcb0f958f26a33664fae045c
tree8558905b0d6c53146302e7d9c459c1b81b22728b
parent648a4991d0713af656a2fa50ec8e708c2beb044e
console: Allow measuring the bounding box of text

For laying out text accurately it is necessary to know the width and
height of the text. Add a measure() method to the console API, so this
can be supported.

Add an implementation for truetype and a base implementation for the
normal console.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/video/console_truetype.c
drivers/video/vidconsole-uclass.c
include/video_console.h