Skip to contentSkip to conversation

qt: add enable for truetype font installation

PATCH Superseded Danomi Manchego 1 participant 1 message Mar 14, 2017

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 qt: add enable for truetype font installation

---

Changes V1->V2:
- Drop detailed explanation from commit log. (Peter Seiderer)
- Rename option from ..DEJAVU to ..TRUETYPE. (Peter Seiderer)
- Replace depends-on test with equivalent but more verbose expression (Peter Seiderer)

---
 package/qt/Config.in | 8 ++++++++
 package/qt/qt.mk     | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)
package/qt/Config.in +8 -0
index fa5235d..294df0e 100644
@@ -185,6 +185,14 @@ endmenu
 
 menu "Fonts"
 
+config BR2_PACAKGE_QT_FONT_TRUETYPE
+	bool "dejavu/vera"
+	depends on BR2_PACKAGE_QT_QTFREETYPE || BR2_PACKAGE_QT_SYSTEMFREETYPE
+	default y
+
+comment "dejavu/vera fonts need freetype support"
+	depends on !BR2_PACKAGE_QT_QTFREETYPE && !BR2_PACKAGE_QT_SYSTEMFREETYPE
+
 config BR2_PACKAGE_QT_FONT_MICRO
 	bool "micro"
 	default y
package/qt/qt.mk +1 -1
index e82bdfe8..cc478f1 100644
@@ -689,7 +689,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_PACAKGE_QT_FONT_TRUETYPE),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