[gnome-build-meta/alatiera/source-code-pro: 1/2] sdk: add adobe-source-code-pro fonts
- From: Jordan Petridis <jpetridis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/alatiera/source-code-pro: 1/2] sdk: add adobe-source-code-pro fonts
- Date: Fri, 31 Jul 2020 11:15:45 +0000 (UTC)
commit 125101c7781cda20831e75b9be0638bbdf491931
Author: Jordan Petridis <jordan centricular com>
Date: Sun Jul 26 11:32:33 2020 +0300
sdk: add adobe-source-code-pro fonts
We've changed the gnome default to source-code-pro a while ago,
but we haven't had inlcuded it in the runtime till now.
Close #137
elements/sdk-platform.bst | 1 +
elements/sdk/adobe-source-code-pro-fonts.bst | 23 +++++++++++++++++++++++
files/font-conf/adobe-source-code-pro.conf | 16 ++++++++++++++++
3 files changed, 40 insertions(+)
---
diff --git a/elements/sdk-platform.bst b/elements/sdk-platform.bst
index 3e592708..9263af4a 100644
--- a/elements/sdk-platform.bst
+++ b/elements/sdk-platform.bst
@@ -2,6 +2,7 @@ kind: stack
depends:
- sdk/WebKitGTK.bst
- sdk/adwaita-icon-theme.bst
+- sdk/adobe-source-code-pro-fonts.bst
- sdk/appstream-glib.bst
- sdk/at-spi2-atk.bst
- sdk/at-spi2-core.bst
diff --git a/elements/sdk/adobe-source-code-pro-fonts.bst b/elements/sdk/adobe-source-code-pro-fonts.bst
new file mode 100644
index 00000000..32990009
--- /dev/null
+++ b/elements/sdk/adobe-source-code-pro-fonts.bst
@@ -0,0 +1,23 @@
+kind: manual
+
+depends:
+- freedesktop-sdk.bst:bootstrap-import.bst
+
+variables:
+ fontdir: '%{datadir}/fonts/adobe-source-code-pro-fonts'
+ confdir: '%{sysconfdir}/fonts'
+
+config:
+ install-commands:
+ - |
+ install -d -m0755 "%{install-root}%{confdir}/conf.avail" "%{install-root}%{confdir}/conf.d"
"%{install-root}%{fontdir}"
+ install -p -m0644 OTF/*.otf "%{install-root}%{fontdir}/"
+ install -p -m0644 "config/adobe-source-code-pro.conf" "%{install-root}%{confdir}/conf.avail/"
+ ln -s "../conf.avail/61-adobe-source-code-pro.conf" "%{install-root}%{confdir}/conf.d/"
+
+sources:
+- kind: tar
+ url: github_com:adobe-fonts/source-code-pro/archive/2.010R-ro/1.030R-it.tar.gz
+- kind: local
+ path: files/font-conf/adobe-source-code-pro.conf
+ directory: config
diff --git a/files/font-conf/adobe-source-code-pro.conf b/files/font-conf/adobe-source-code-pro.conf
new file mode 100644
index 00000000..f3a55c13
--- /dev/null
+++ b/files/font-conf/adobe-source-code-pro.conf
@@ -0,0 +1,16 @@
+<?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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]