Skip to contentSkip to conversation

Initial add source-code-pro-fonts 2.030_1.050

PATCH New Andreas Müller 1 participant 3 messages Sep 12, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 Initial add source-code-pro-fonts 2.030_1.050

---
 meta-oe/conf/layer.conf                       |  1 +
 .../44-source-code-pro-fonts-fontconfig.conf  | 17 +++++++++++
 .../source-code-pro-fonts_2.030_1.050.bb      | 29 +++++++++++++++++++
 3 files changed, 47 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/ttf-fonts/source-code-pro-fonts/44-source-code-pro-fonts-fontconfig.conf
 create mode 100644 meta-oe/recipes-graphics/ttf-fonts/source-code-pro-fonts_2.030_1.050.bb
meta-oe/conf/layer.conf +1 -0
index 5178678da2..5b79b59b71 100644
@@ -92,6 +92,7 @@ SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \
   source-han-sans-jp-fonts->fontconfig \
   source-han-sans-kr-fonts->fontconfig \
   source-han-sans-tw-fonts->fontconfig \
+  source-code-pro-fonts->fontconfig \
 "
 
 DEFAULT_TEST_SUITES_pn-meta-oe-ptest-image = " ${PTESTTESTSUITE}"
meta-oe/recipes-graphics/ttf-fonts/source-code-pro-fonts/44-source-code-pro-fonts-fontconfig.conf new file +17 -0
new file mode 100644
index 0000000000..badb1b0115
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+  <alias>
+    <family>monospace</family>
+    <prefer>
+      <family>Source Code Pro</family>
+    </prefer>
+  </alias>
+  <alias>
+    <family>Source Code Pro</family>
+    <default>
+      <family>monospace</family>
+    </default>
+  </alias>
+</fontconfig>
+
meta-oe/recipes-graphics/ttf-fonts/source-code-pro-fonts_2.030_1.050.bb new file +29 -0
new file mode 100644
index 0000000000..5d10195f73
@@ -0,0 +1,29 @@
+require ttf.inc
+
+SUMMARY = "Adobe Source Code Pro"
+HOMEPAGE = "https://github.com/adobe-fonts/source-code-pro"
+LICENSE = "OFL-1.1"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=c7c16bdc2c96af797293d68503e5c65c"
+
+inherit allarch fontcache
+
+SRC_URI = " \
+    https://github.com/adobe-fonts/source-code-pro/releases/download/2.030R-ro/1.050R-it/source-code-pro-2.030R-ro-1.050R-it.zip \
+    file://44-source-code-pro-fonts-fontconfig.conf \
+"
+SRC_URI[sha256sum] = "da2ac159497d31b0c6d9daa8fc390fb8252e75b4a9805ace6a2c9cccaed4932e"
+S = "${WORKDIR}/source-code-pro-2.030R-ro-1.050R-it"
+
+do_install() {
+    install -d ${D}${sysconfdir}/fonts/conf.d/
+    install -m 0644 ${WORKDIR}/44-source-code-pro-fonts-fontconfig.conf ${D}${sysconfdir}/fonts/conf.d/
+
+    install -d ${D}${datadir}/fonts/truetype/
+    find ./ -name '*.otf' -exec install -m 0644 {} ${D}${datadir}/fonts/truetype/ \;
+}
+
+FILES_${PN} = " \
+    ${sysconfdir}/fonts \
+    ${datadir}/fonts \
+"
+
Signature · 1 line
2.26.2
#1 lore raw

PATCH 2/3 gedit: add source-code-pro-fonts to RRECOMMENDS

Would call gedit almost unusable without source-code-pro-fonts

---
 meta-gnome/recipes-gnome/gedit/gedit_3.36.2.bb | 1 +
 1 file changed, 1 insertion(+)
meta-gnome/recipes-gnome/gedit/gedit_3.36.2.bb +1 -0
index 75f1737c62..afd9146ac8 100644
@@ -36,3 +36,4 @@ FILES_${PN}-python += " \
     ${PYTHON_SITEPACKAGES_DIR} \
 "
 
+RRECOMMENDS_${PN} += "source-code-pro-fonts"
Signature · 1 line
2.26.2
#2 lore raw

PATCH 3/3 geany: add source-code-pro-fonts to RRECOMMENDS

In reply to Andreas Müller

Same: having source-code-pro-fonts around is like a bugfix

---
 meta-oe/recipes-devtools/geany/geany_1.36.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-devtools/geany/geany_1.36.bb +2 -0
index 8282091b30..039999f6bf 100644
@@ -16,3 +16,5 @@ SRC_URI[sha256sum] = "9184dd3dd40b7b84fca70083284bb9dbf2ee8022bf2be066bdc36592d9
 FILES_${PN} += "${datadir}/icons"
 
 EXTRA_OECONF = "--disable-html-docs"
+
+RRECOMMENDS_${PN} += "source-code-pro-fonts"
Signature · 1 line
2.26.2