[Buildroot] [PATCH 07/29 v2] package/pulseview: needs some font, and fontconfig support in qt5base

Yann E. MORIN yann.morin.1998 at free.fr
Wed Apr 9 20:03:22 UTC 2025


pulseview needs to render some text, so it needs "some font".

It also needs Qt5 to be able to locate and load fonts. This can be
achieved at runtime, by setting the QT_QPA_FONTDIR environment variable
to point to the directory containing fonts, but this is not very
practical.

Instead, it can also be achieved by adding fontconfig support to Qt5,
which is in charge of actually looking up and loading fonts all by
itself. This is the way we decided to go for, as it makes things "just
work" without any trick.

Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
---
 package/pulseview/Config.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/pulseview/Config.in b/package/pulseview/Config.in
index b1f9dc25d7..94196f631b 100644
--- a/package/pulseview/Config.in
+++ b/package/pulseview/Config.in
@@ -17,11 +17,13 @@ config BR2_PACKAGE_PULSEVIEW
 	select BR2_PACKAGE_LIBSIGROKCXX
 	select BR2_PACKAGE_QT5
 	select BR2_PACKAGE_QT5BASE
+	select BR2_PACKAGE_QT5BASE_FONTCONFIG
 	select BR2_PACKAGE_QT5BASE_PNG
 	select BR2_PACKAGE_QT5BASE_WIDGETS
 	select BR2_PACKAGE_QT5SVG
 	select BR2_PACKAGE_QT5TOOLS
 	select BR2_PACKAGE_QT5TOOLS_LINGUIST_TOOLS
+	select BR2_PACKAGE_SOME_FONT  # runtime
 	help
 	  PulseView is a Qt based logic analyzer, oscilloscope
 	  and MSO GUI for sigrok.
-- 
2.47.0



More information about the buildroot mailing list