qt: add enable for truetype font installation
PATCH 1/1 qt: add enable for truetype font installation
Currently, qt.mk installs DejaVu/Vera TrueType fonts if freetype support is available, either from Qt or from the system freetype. However, there are lots of fonts that can be used with Qt, both within Qt (the prerendered fonts) and outside of Qt (in buildroot's font area). So it seems appropriate to expose a switch to enable the installation of the TrueType fonts, conditioned on freetype availability. At least, it provides a similar level of selectability as already exists with the prerendered fonts (micro, fixed, helvetica, etc.), and in some cases may solve problems where setting fonts by family and attribute is complicated by DejaVu competing with fonts that were actually selected in the buildroot menu.
--- package/qt/Config.in | 8 ++++++++ package/qt/qt.mk | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-)
package/qt/Config.in +8 -0
@@ -185,6 +185,14 @@ endmenu menu "Fonts" +config BR2_PACKAGE_QT_FONT_DEJAVU + bool "dejavu/vera" + depends on !BR2_PACKAGE_QT_NOFREETYPE + default y + +comment "dejavu/vera fonts need freetype support" + depends on BR2_PACKAGE_QT_NOFREETYPE + config BR2_PACKAGE_QT_FONT_MICRO bool "micro" default y
package/qt/qt.mk +1 -1
@@ -692,7 +692,7 @@ QT_LICENSE_FILES += src/3rdparty/fonts/COPYRIGHT.Unifont endif endif # QT_FONTS -ifeq ($(BR2_PACKAGE_QT_QTFREETYPE)$(BR2_PACKAGE_QT_SYSTEMFREETYPE),y) +ifeq ($(BR2_PACKAGE_QT_FONT_DEJAVU),y) define QT_INSTALL_TARGET_FONTS_TTF mkdir -p $(TARGET_DIR)/usr/lib/fonts cp -dpf $(STAGING_DIR)/usr/lib/fonts/*.ttf $(TARGET_DIR)/usr/lib/fonts
Signature · 1 line
2.7.4
PATCH 1/1 qt: add enable for truetype font installation
Hello Danomi,
Quoted 11 lines · Danomi Manchego
Currently, qt.mk installs DejaVu/Vera TrueType fonts if freetype support is available, either from Qt or from the system freetype. However, there are lots of fonts that can be used with Qt, both within Qt (the prerendered fonts) and outside of Qt (in buildroot's font area). So it seems appropriate to expose a switch to enable the installation of the TrueType fonts, conditioned on freetype availability. At least, it provides a similar level of selectability as already exists with the prerendered fonts (micro, fixed, helvetica, etc.), and in some cases may solve problems where setting fonts by family and attribute is complicated by DejaVu competing with fonts that were actually selected in the buildroot menu.
Very detailed explanation for your reasoning, maybe stuff for a cover-letter?
Maybe
Subject: qt: add truetype font installation option
Make truetype font installation optional.
is detailed enough?
Quoted 12 lines
Signed-off-by Danomi Manchego <[email protected]>--- package/qt/Config.in | 8 ++++++++ package/qt/qt.mk | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-)package/qt/Config.in +0
-0
package/qt/Config.in endmenu · line 188
Quoted 4 lines
package/qt/Config.in +1
-0@@ -185,6 +185,14 @@ endmenu menu "Fonts" +config BR2_PACKAGE_QT_FONT_DEJAVU
BR2_PACKAGE_QT_FONT_DEJAVU is a little misnamer, better BR2_PACAKGE_QT_FONT_TRUETYPE ?
package/qt/Config.in endmenu · line 190
Quoted 2 lines
package/qt/Config.in +2
-0+ bool "dejavu/vera" + depends on !BR2_PACKAGE_QT_NOFREETYPE
I think this depends on does the right thing as the config option is embedded into the BR2_PACKAGE_QT_EMBEDDED, but I find
depends on BR2_PACKAGE_QT_QTFREETYPE || BR2_PACKAGE_QT_SYSTEMFREETYPE
more readable...
Regards,
Peter
Quoted 21 lines
package/qt/Config.in +5
-0+ default y + +comment "dejavu/vera fonts need freetype support" + depends on BR2_PACKAGE_QT_NOFREETYPE + config BR2_PACKAGE_QT_FONT_MICRO bool "micro" default ypackage/qt/qt.mk +1
-1@@ -692,7 +692,7 @@ QT_LICENSE_FILES += src/3rdparty/fonts/COPYRIGHT.Unifont endif endif # QT_FONTS -ifeq ($(BR2_PACKAGE_QT_QTFREETYPE)$(BR2_PACKAGE_QT_SYSTEMFREETYPE),y) +ifeq ($(BR2_PACKAGE_QT_FONT_DEJAVU),y) define QT_INSTALL_TARGET_FONTS_TTF mkdir -p $(TARGET_DIR)/usr/lib/fonts cp -dpf $(STAGING_DIR)/usr/lib/fonts/*.ttf $(TARGET_DIR)/usr/lib/fonts
PATCH 1/1 qt: add enable for truetype font installation
Hello,
Quoted 14 lines · Peter Seiderer
Quoted 11 lines · Danomi Manchego
Currently, qt.mk installs DejaVu/Vera TrueType fonts if freetype support is available, either from Qt or from the system freetype. However, there are lots of fonts that can be used with Qt, both within Qt (the prerendered fonts) and outside of Qt (in buildroot's font area). So it seems appropriate to expose a switch to enable the installation of the TrueType fonts, conditioned on freetype availability. At least, it provides a similar level of selectability as already exists with the prerendered fonts (micro, fixed, helvetica, etc.), and in some cases may solve problems where setting fonts by family and attribute is complicated by DejaVu competing with fonts that were actually selected in the buildroot menu.
Quoted 2 lines
Very detailed explanation for your reasoning, maybe stuff for a cover-letter?
I really disagree with this. The contents of cover letters disappear in the dark caves of the mailing list archives, while commit logs can very easily be found when looking at the history of the changes on a package. So I very, very much prefer to have detailed commit logs rather than everything in the cover letter and very terse commit logs.
I've seen the v2 of Danomi, and now I'm like "why do we want this?".
Quoted 5 lines
Subject: qt: add truetype font installation option
Make truetype font installation optional.
is detailed enough?
No, it's not :)
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 1/1 qt: add enable for truetype font installation
Quoted 18 lines · Thomas Petazzoni
Hello,
Quoted 14 lines · Peter Seiderer
Quoted 11 lines · Danomi Manchego
Currently, qt.mk installs DejaVu/Vera TrueType fonts if freetype support is available, either from Qt or from the system freetype. However, there are lots of fonts that can be used with Qt, both within Qt (the prerendered fonts) and outside of Qt (in buildroot's font area). So it seems appropriate to expose a switch to enable the installation of the TrueType fonts, conditioned on freetype availability. At least, it provides a similar level of selectability as already exists with the prerendered fonts (micro, fixed, helvetica, etc.), and in some cases may solve problems where setting fonts by family and attribute is complicated by DejaVu competing with fonts that were actually selected in the buildroot menu.
Quoted 8 lines
Quoted 2 lines
Very detailed explanation for your reasoning, maybe stuff for a cover-letter?
I really disagree with this. The contents of cover letters disappear in the dark caves of the mailing list archives, while commit logs can very easily be found when looking at the history of the changes on a package. So I very, very much prefer to have detailed commit logs rather than everything in the cover letter and very terse commit logs.
I'm inclined to agree, but I'm told that I'm long-winded sometimes, so I deferred to Peter. I'll spin a v3 with a tweaked comment.
Danomi -
Quoted 17 lines
I've seen the v2 of Danomi, and now I'm like "why do we want this?".
Quoted 5 lines
Subject: qt: add truetype font installation option
Make truetype font installation optional.
is detailed enough?
No, it's not :)
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com