video: truetype: Handle rendering of bitmap fonts
Complete the support for this feature by dealing with rendering, the moving to a particular row/column and scrolling. Provide a simple test to check that things look right. Allow omitting the font name to request the default font. Fix an errant tab nearby. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -12,7 +12,7 @@ Synopsis
|
||||
::
|
||||
|
||||
font list
|
||||
font select <name> [<size>]
|
||||
font select [<name> [<size>]]
|
||||
font size [<size>]
|
||||
|
||||
Description
|
||||
@@ -25,11 +25,13 @@ font list
|
||||
~~~~~~~~~
|
||||
|
||||
This lists the available fonts, using the name of the font file in the build.
|
||||
Any enabled bitmap fonts are listed as well.
|
||||
|
||||
font select
|
||||
~~~~~~~~~~~
|
||||
|
||||
This selects a new font and optionally changes the size.
|
||||
This selects a new font and optionally changes the size. If the name is not
|
||||
provided, the default font is used.
|
||||
|
||||
font size
|
||||
~~~~~~~~~
|
||||
@@ -50,6 +52,16 @@ Examples
|
||||
=> font select cantoraone_regular 20
|
||||
=>
|
||||
|
||||
This shows an example of selecting a bitmap font Truetype is active::
|
||||
|
||||
=> font list
|
||||
8x16
|
||||
12x22
|
||||
nimbus_sans_l_regular
|
||||
cantoraone_regular
|
||||
=> font sel 8x16
|
||||
|
||||
|
||||
Configuration
|
||||
-------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user