public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/3] video: Add information about using TrueType fonts
@ 2018-12-27 22:25 Simon Glass
  2018-12-27 22:25 ` [U-Boot] [PATCH 2/3] video: Add a default TrueType font Simon Glass
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Simon Glass @ 2018-12-27 22:25 UTC (permalink / raw)
  To: u-boot

U-Boot supports using TrueType fonts on the console, which is useful for
presenting a nice UI to users, e.g. for system recovery.

Add information about how to compile this on ARM platforms, since this is
not obvious.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 doc/README.video | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/doc/README.video b/doc/README.video
index 09a26b17936..7a30512c96d 100644
--- a/doc/README.video
+++ b/doc/README.video
@@ -75,3 +75,23 @@ The sunxi U-Boot driver supports the following video-mode options:
 For example to always use the hdmi connector, even if no cable is inserted,
 using edid info when available and otherwise initalizing it at 1024x768 at 60Hz,
 use: "setenv video-mode sunxi:1024x768-24 at 60,monitor=dvi,hpd=0,edid=1".
+
+
+TrueType fonts
+--------------
+
+U-Boot supports the use of antialiased TrueType fonts on some platforms. This
+has been tested in x86, ARMv7 and sandbox.
+
+To enable this, select CONFIG_CONSOLE_TRUETYPE. You can choose between several
+fonts, with CONSOLE_TRUETYPE_NIMBUS being the default.
+
+TrueType supports requires floating point at present. On ARMv7 platforms you
+need to disable use of the private libgcc. You can do this by disabling
+CONFIG_USE_PRIVATE_LIBGCC. See chromebook_jerry for an example. Note that this
+increases U-Boot's size by about 70KB at present.
+
+On ARM you should also make sure your toolchain supports hardfp. This is
+normally given in the name of your toolchain, e.g. arm-linux-gnueabihf (hf
+means hardware floating point). You can also run gcc with -v to see if it has
+this option.
-- 
2.20.1.415.g653613c723-goog

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [U-Boot] [PATCH 2/3] video: Add a default TrueType font
  2018-12-27 22:25 [U-Boot] [PATCH 1/3] video: Add information about using TrueType fonts Simon Glass
@ 2018-12-27 22:25 ` Simon Glass
  2018-12-28 10:46   ` Philipp Tomsich
  2018-12-28 21:37   ` Anatolij Gustschin
  2018-12-27 22:25 ` [U-Boot] [PATCH 3/3] video: rockchip: Use TrueType fonts with jerry Simon Glass
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 9+ messages in thread
From: Simon Glass @ 2018-12-27 22:25 UTC (permalink / raw)
  To: u-boot

At present it is possible to enable TrueType support but not include any
fonts. This results in a blank display. Select Nimbus as the default font
to avoid this.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/video/fonts/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/video/fonts/Kconfig b/drivers/video/fonts/Kconfig
index 3f1398db50c..c692fa9602f 100644
--- a/drivers/video/fonts/Kconfig
+++ b/drivers/video/fonts/Kconfig
@@ -7,6 +7,7 @@ menu "TrueType Fonts"
 config CONSOLE_TRUETYPE_NIMBUS
 	bool "Nimbus Sans Regular"
 	depends on CONSOLE_TRUETYPE
+	default y
 	help
 	  Nimbus Sans L is a version of Nimbus Sans using Adobe font sources.
 	  It was designed in 1987. A subset of Nimbus Sans L were released
-- 
2.20.1.415.g653613c723-goog

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [U-Boot] [PATCH 3/3] video: rockchip: Use TrueType fonts with jerry
  2018-12-27 22:25 [U-Boot] [PATCH 1/3] video: Add information about using TrueType fonts Simon Glass
  2018-12-27 22:25 ` [U-Boot] [PATCH 2/3] video: Add a default TrueType font Simon Glass
@ 2018-12-27 22:25 ` Simon Glass
  2018-12-28 10:45   ` Philipp Tomsich
  2018-12-28 21:37   ` Anatolij Gustschin
  2018-12-28 10:46 ` [U-Boot] [PATCH 1/3] video: Add information about using TrueType fonts Philipp Tomsich
  2018-12-28 21:35 ` Anatolij Gustschin
  3 siblings, 2 replies; 9+ messages in thread
From: Simon Glass @ 2018-12-27 22:25 UTC (permalink / raw)
  To: u-boot

As an example of how to enable TrueType fonts, move chromebook_jerry over
to use these.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 configs/chromebook_jerry_defconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/configs/chromebook_jerry_defconfig b/configs/chromebook_jerry_defconfig
index d892d65bf0a..94a1af01be0 100644
--- a/configs/chromebook_jerry_defconfig
+++ b/configs/chromebook_jerry_defconfig
@@ -80,7 +80,6 @@ CONFIG_ROCKCHIP_SPI=y
 CONFIG_SYSRESET=y
 CONFIG_USB=y
 CONFIG_ROCKCHIP_USB2_PHY=y
-CONFIG_USB_STORAGE=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_MANUFACTURER="Rockchip"
 CONFIG_USB_GADGET_VENDOR_NUM=0x2207
@@ -88,10 +87,12 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x320a
 CONFIG_USB_GADGET_DWC2_OTG=y
 CONFIG_USB_FUNCTION_MASS_STORAGE=y
 CONFIG_DM_VIDEO=y
+CONFIG_CONSOLE_TRUETYPE=y
 CONFIG_DISPLAY=y
 CONFIG_VIDEO_ROCKCHIP=y
 CONFIG_DISPLAY_ROCKCHIP_EDP=y
 CONFIG_DISPLAY_ROCKCHIP_HDMI=y
+# CONFIG_USE_PRIVATE_LIBGCC is not set
 CONFIG_USE_TINY_PRINTF=y
 CONFIG_CMD_DHRYSTONE=y
 CONFIG_ERRNO_STR=y
-- 
2.20.1.415.g653613c723-goog

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [U-Boot] [PATCH 3/3] video: rockchip: Use TrueType fonts with jerry
  2018-12-27 22:25 ` [U-Boot] [PATCH 3/3] video: rockchip: Use TrueType fonts with jerry Simon Glass
@ 2018-12-28 10:45   ` Philipp Tomsich
  2018-12-28 21:37   ` Anatolij Gustschin
  1 sibling, 0 replies; 9+ messages in thread
From: Philipp Tomsich @ 2018-12-28 10:45 UTC (permalink / raw)
  To: u-boot



> On 27.12.2018, at 23:25, Simon Glass <sjg@chromium.org> wrote:
> 
> As an example of how to enable TrueType fonts, move chromebook_jerry over
> to use these.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>

Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [U-Boot] [PATCH 1/3] video: Add information about using TrueType fonts
  2018-12-27 22:25 [U-Boot] [PATCH 1/3] video: Add information about using TrueType fonts Simon Glass
  2018-12-27 22:25 ` [U-Boot] [PATCH 2/3] video: Add a default TrueType font Simon Glass
  2018-12-27 22:25 ` [U-Boot] [PATCH 3/3] video: rockchip: Use TrueType fonts with jerry Simon Glass
@ 2018-12-28 10:46 ` Philipp Tomsich
  2018-12-28 21:35 ` Anatolij Gustschin
  3 siblings, 0 replies; 9+ messages in thread
From: Philipp Tomsich @ 2018-12-28 10:46 UTC (permalink / raw)
  To: u-boot

On 27.12.2018, at 23:25, Simon Glass <sjg@chromium.org> wrote:
> 
> U-Boot supports using TrueType fonts on the console, which is useful for
> presenting a nice UI to users, e.g. for system recovery.
> 
> Add information about how to compile this on ARM platforms, since this is
> not obvious.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>

Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [U-Boot] [PATCH 2/3] video: Add a default TrueType font
  2018-12-27 22:25 ` [U-Boot] [PATCH 2/3] video: Add a default TrueType font Simon Glass
@ 2018-12-28 10:46   ` Philipp Tomsich
  2018-12-28 21:37   ` Anatolij Gustschin
  1 sibling, 0 replies; 9+ messages in thread
From: Philipp Tomsich @ 2018-12-28 10:46 UTC (permalink / raw)
  To: u-boot



> On 27.12.2018, at 23:25, Simon Glass <sjg@chromium.org> wrote:
> 
> At present it is possible to enable TrueType support but not include any
> fonts. This results in a blank display. Select Nimbus as the default font
> to avoid this.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>

Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [U-Boot] [PATCH 1/3] video: Add information about using TrueType fonts
  2018-12-27 22:25 [U-Boot] [PATCH 1/3] video: Add information about using TrueType fonts Simon Glass
                   ` (2 preceding siblings ...)
  2018-12-28 10:46 ` [U-Boot] [PATCH 1/3] video: Add information about using TrueType fonts Philipp Tomsich
@ 2018-12-28 21:35 ` Anatolij Gustschin
  3 siblings, 0 replies; 9+ messages in thread
From: Anatolij Gustschin @ 2018-12-28 21:35 UTC (permalink / raw)
  To: u-boot

Hi Simon,

On Thu, 27 Dec 2018 15:25:17 -0700
Simon Glass sjg at chromium.org wrote:

> U-Boot supports using TrueType fonts on the console, which is useful for
> presenting a nice UI to users, e.g. for system recovery.
> 
> Add information about how to compile this on ARM platforms, since this is
> not obvious.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
> 
>  doc/README.video | 20 ++++++++++++++++++++
>  1 file changed, 20 insertions(+)

Applied to u-boot-video/master, thanks!

--
Anatolij

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [U-Boot] [PATCH 2/3] video: Add a default TrueType font
  2018-12-27 22:25 ` [U-Boot] [PATCH 2/3] video: Add a default TrueType font Simon Glass
  2018-12-28 10:46   ` Philipp Tomsich
@ 2018-12-28 21:37   ` Anatolij Gustschin
  1 sibling, 0 replies; 9+ messages in thread
From: Anatolij Gustschin @ 2018-12-28 21:37 UTC (permalink / raw)
  To: u-boot

On Thu, 27 Dec 2018 15:25:18 -0700
Simon Glass sjg at chromium.org wrote:

> At present it is possible to enable TrueType support but not include any
> fonts. This results in a blank display. Select Nimbus as the default font
> to avoid this.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
> 
>  drivers/video/fonts/Kconfig | 1 +
>  1 file changed, 1 insertion(+)

Applied to u-boot-video/master, thanks!

--
Anatolij

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [U-Boot] [PATCH 3/3] video: rockchip: Use TrueType fonts with jerry
  2018-12-27 22:25 ` [U-Boot] [PATCH 3/3] video: rockchip: Use TrueType fonts with jerry Simon Glass
  2018-12-28 10:45   ` Philipp Tomsich
@ 2018-12-28 21:37   ` Anatolij Gustschin
  1 sibling, 0 replies; 9+ messages in thread
From: Anatolij Gustschin @ 2018-12-28 21:37 UTC (permalink / raw)
  To: u-boot

On Thu, 27 Dec 2018 15:25:19 -0700
Simon Glass sjg at chromium.org wrote:

> As an example of how to enable TrueType fonts, move chromebook_jerry over
> to use these.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
> 
>  configs/chromebook_jerry_defconfig | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Applied to u-boot-video/master, thanks!

--
Anatolij

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-12-28 21:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-27 22:25 [U-Boot] [PATCH 1/3] video: Add information about using TrueType fonts Simon Glass
2018-12-27 22:25 ` [U-Boot] [PATCH 2/3] video: Add a default TrueType font Simon Glass
2018-12-28 10:46   ` Philipp Tomsich
2018-12-28 21:37   ` Anatolij Gustschin
2018-12-27 22:25 ` [U-Boot] [PATCH 3/3] video: rockchip: Use TrueType fonts with jerry Simon Glass
2018-12-28 10:45   ` Philipp Tomsich
2018-12-28 21:37   ` Anatolij Gustschin
2018-12-28 10:46 ` [U-Boot] [PATCH 1/3] video: Add information about using TrueType fonts Philipp Tomsich
2018-12-28 21:35 ` Anatolij Gustschin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox