[PATCH 2/8] video: vidconsole: Support wider bitmap fonts

Simon Glass sjg at chromium.org
Wed Jan 12 21:04:03 CET 2022


On Sun, 9 Jan 2022 at 17:57, Andre Przywara <andre.przywara at arm.com> wrote:
>
> Currently the DM_VIDEO console only supports bitmap fonts with up to
> 8 pixels wide glyphs. Add support for fonts with glyphs up to 32 pixels
> wide, as those might prove useful on high resolution screens.
>
> This is done by expanding the glyph bits buffer to 32bits, and aligning
> the font data to the high bits, counting down from there. The compiler
> should optimise away any unneeded accesses for narrower fonts.
>
> Signed-off-by: Andre Przywara <andre.przywara at arm.com>
> ---
>  drivers/video/console_normal.c | 25 ++++++++++++++++++++-----
>  1 file changed, 20 insertions(+), 5 deletions(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list