Skip to contentSkip to conversation

Add 2 ttf fonts

PATCH In review [email protected] 2 participants 5 messages Jul 18, 2016 – Jul 25, 2016

lore
Share & tools
lore
#0 lore raw

cover Add 2 ttf fonts

From: Kai Kang <[email protected]>

Kai Kang (2):
liberation-sans-narrow: add a ttf font
ttf-vlgothic: add a ttf font

 .../30-0-liberation-sans-narrow.conf               | 18 ++++++++++++
 .../ttf-fonts/ttf-liberation-sans-narrow_1.07.4.bb | 32 ++++++++++++++++++++++
 .../ttf-fonts/ttf-vlgothic_20141206.bb             | 28 +++++++++++++++++++
 3 files changed, 78 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/ttf-fonts/ttf-liberation-sans-narrow/30-0-liberation-sans-narrow.conf
 create mode 100644 meta-oe/recipes-graphics/ttf-fonts/ttf-liberation-sans-narrow_1.07.4.bb
 create mode 100644 meta-oe/recipes-graphics/ttf-fonts/ttf-vlgothic_20141206.bb
Signature · 1 line
2.6.1
#1 lore raw

PATCH 1/2 liberation-sans-narrow: add a ttf font

From: Kai Kang <[email protected]>

Add an extra ttf font liberation-sans-narrow for X.

---
 .../30-0-liberation-sans-narrow.conf               | 18 ++++++++++++
 .../ttf-fonts/ttf-liberation-sans-narrow_1.07.4.bb | 32 ++++++++++++++++++++++
 2 files changed, 50 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/ttf-fonts/ttf-liberation-sans-narrow/30-0-liberation-sans-narrow.conf
 create mode 100644 meta-oe/recipes-graphics/ttf-fonts/ttf-liberation-sans-narrow_1.07.4.bb
meta-oe/recipes-graphics/ttf-fonts/ttf-liberation-sans-narrow/30-0-liberation-sans-narrow.conf new file +18 -0
new file mode 100644
index 0000000..a4f4da7
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+         <!-- Microsoft -->
+        <alias binding="same">
+          <family>Arial Narrow</family>
+            <accept>
+              <family>Liberation Sans Narrow</family>
+            </accept>
+        </alias>
+        <alias binding="same">
+          <family>Liberation Sans Narrow</family>
+            <default>
+              <family>Arial Narrow</family>
+            </default>
+        </alias>
+</fontconfig>
+
meta-oe/recipes-graphics/ttf-fonts/ttf-liberation-sans-narrow_1.07.4.bb new file +32 -0
new file mode 100644
index 0000000..f36cf4b
@@ -0,0 +1,32 @@
+require ttf.inc
+
+SUMMARY = "Liberation(tm) Fonts"
+DESCRIPTION = "The Liberation(tm) Fonts is a font family originally \
+created by Ascender(c) which aims at metric compatibility with \
+Arial, Times New Roman, Courier New."
+
+HOMEPAGE = "https://fedorahosted.org/liberation-fonts/"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
+
+SRC_URI = "https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-ttf-${PV}.tar.gz \
+           file://30-0-liberation-sans-narrow.conf \
+"
+
+SRC_URI[md5sum] = "134d8262145fc793c6af494dcace3e71"
+SRC_URI[sha256sum] = "61a7e2b6742a43c73e8762cdfeaf6dfcf9abdd2cfa0b099a9854d69bc4cfee5c"
+
+S = "${WORKDIR}/liberation-fonts-ttf-${PV}"
+
+do_install_append () {
+    install -d ${D}${datadir}/fonts/TTF/
+    install -d ${D}${sysconfdir}/fonts/conf.d/
+    install -m 0644 LiberationSansNarrow*.ttf ${D}${datadir}/fonts/TTF/
+    install -D -m 0644 ${WORKDIR}/30-0-liberation-sans-narrow.conf ${D}${sysconfdir}/conf.avail/30-${PN}-sans.conf
+    install -D -m 0644 ${S}/License.txt ${D}${datadir}/licenses/${PN}/LICENSE
+}
+
+PACKAGES = "${PN}"
+FONT_PACKAGES = "${PN}"
+
+FILES_${PN} = "${datadir}/fonts ${sysconfdir} ${datadir}/licenses"
Signature · 1 line
2.6.1
#2 lore raw

PATCH 2/2 ttf-vlgothic: add a ttf font

In reply to [email protected]

From: Kai Kang <[email protected]>

Add an extra ttf font vlgothic.

The font is derived from from M+ FONTS which is created by M+ FONTS PROJECT and under the Free license. So it has to obey the mplus licence.

---
 .../ttf-fonts/ttf-vlgothic_20141206.bb             | 28 ++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/ttf-fonts/ttf-vlgothic_20141206.bb
meta-oe/recipes-graphics/ttf-fonts/ttf-vlgothic_20141206.bb new file +28 -0
new file mode 100644
index 0000000..62f2bb2
@@ -0,0 +1,28 @@
+require ttf.inc
+
+SUMMARY = "Japanese TrueType fonts from Vine Linux"
+AUTHOR = "Contributor: noonov <[email protected]>"
+HOMEPAGE = "http://vlgothic.dicey.org/"
+
+LICENSE = "mplus & BSD"
+LIC_FILES_CHKSUM = "file://LICENSE.en;md5=66ecd0fd7e4da6246fa30317c7b66755 \
+                    file://LICENSE_E.mplus;md5=1c4767416f20215f1e61b970f2117db9 \
+"
+
+SRC_URI = "https://osdn.jp/dl/vlgothic/VLGothic-${PV}.tar.xz"
+
+SRC_URI[md5sum] = "bb7fadb2dff09a4fb6a11dc9dfdc0c36"
+SRC_URI[sha256sum] = "982040db2f9cb73d7c6ab7d9d163f2ed46d1180f330c9ba2fae303649bf8102d"
+
+S = "${WORKDIR}/VLGothic"
+
+do_install_append () {
+    install -D -m644 ${S}/LICENSE_E.mplus ${D}${datadir}/licenses/${PN}/COPYING_MPLUS.txt
+    install -D -m644 ${S}/README.sazanami ${D}${datadir}/licenses/${PN}/COPYING_SAZANAMI.txt
+    install -D -m644 ${S}/LICENSE.en ${D}${datadir}/licenses/${PN}/COPYING_VLGOTHIC.txt
+}
+
+PACKAGES = "${PN}"
+FONT_PACKAGES = "${PN}"
+
+FILES_${PN} = "${datadir}/fonts/truetype ${datadir}/licenses"
Signature · 1 line
2.6.1
#3 lore raw
In reply to [email protected]

You forgot to update layer.conf, causing:

ERROR: ttf-vlgothic different signature for task do_package_write_ipk.sigdata between qemux86 and qemux86copy runtaskdeps changed from ['fontconfigfontconfig_2.12.0.bb.do_packagedata', 'opkg-utilsopkg-utils_git.bb.do_populate_sysroot:virtual:native', 'pseudopseudo_1.8.1.bb.do_populate_sysroot:virtual:native', 'ttf-fontsttf-vlgothic_20141206.bb.do_package', 'ttf-fontsttf-vlgothic_20141206.bb.do_packagedata'] to ['fontconfigfontconfig_2.12.0.bb.do_packagedata', 'opkg-utilsopkg-utils_git.bb.do_populate_sysroot:virtual:native', 'pseudopseudo_1.8.1.bb.do_populate_sysroot:virtual:native', 'ttf-fontsttf-vlgothic_20141206.bb.do_package', 'ttf-fontsttf-vlgothic_20141206.bb.do_packagedata']

I'll fix it this time, but next time I'll just reject this.

Quoted 29 lines · On Mon, Jul 18, 2016 at 4:28 AM, <[email protected]> wrote:

From: Kai Kang <[email protected]>

Kai Kang (2):
liberation-sans-narrow: add a ttf font
ttf-vlgothic: add a ttf font

 .../30-0-liberation-sans-narrow.conf               | 18 ++++++++++++
 .../ttf-fonts/ttf-liberation-sans-narrow_1.07.4.bb | 32
++++++++++++++++++++++
 .../ttf-fonts/ttf-vlgothic_20141206.bb             | 28
+++++++++++++++++++
 3 files changed, 78 insertions(+)
 create mode 100644
meta-oe/recipes-graphics/ttf-fonts/ttf-liberation-sans-narrow/30-0-liberation-sans-narrow.conf
 create mode 100644 meta-oe/recipes-graphics/ttf-fonts/
ttf-liberation-sans-narrow_1.07.4.bb
 create mode 100644 meta-oe/recipes-graphics/ttf-fonts/

ttf-vlgothic_20141206.bb

--
2.6.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

author
#4 lore raw
Quoted 15 lines · Martin Jansa

You forgot to update layer.conf, causing:

ERROR: ttf-vlgothic different signature for task do_package_write_ipk.sigdata between qemux86 and qemux86copy runtaskdeps changed from ['fontconfigfontconfig_2.12.0.bb.do_packagedata', 'opkg-utilsopkg-utils_git.bb.do_populate_sysroot:virtual:native', 'pseudopseudo_1.8.1.bb.do_populate_sysroot:virtual:native', 'ttf-fontsttf-vlgothic_20141206.bb.do_package', 'ttf-fontsttf-vlgothic_20141206.bb.do_packagedata'] to ['fontconfigfontconfig_2.12.0.bb.do_packagedata', 'opkg-utilsopkg-utils_git.bb.do_populate_sysroot:virtual:native', 'pseudopseudo_1.8.1.bb.do_populate_sysroot:virtual:native', 'ttf-fontsttf-vlgothic_20141206.bb.do_package', 'ttf-fontsttf-vlgothic_20141206.bb.do_packagedata']

Quoted 1 line

I'll fix it this time, but next time I'll just reject this.

Thanks.

--Kai

Quoted 32 lines · On Mon, Jul 18, 2016 at 4:28 AM, <[email protected]> wrote:
Quoted 30 lines

From: Kai Kang <[email protected]>

Kai Kang (2):
liberation-sans-narrow: add a ttf font
ttf-vlgothic: add a ttf font

  .../30-0-liberation-sans-narrow.conf               | 18 ++++++++++++
  .../ttf-fonts/ttf-liberation-sans-narrow_1.07.4.bb | 32
++++++++++++++++++++++
  .../ttf-fonts/ttf-vlgothic_20141206.bb             | 28
+++++++++++++++++++
  3 files changed, 78 insertions(+)

create mode 100644
meta-oe/recipes-graphics/ttf-fonts/ttf-liberation-sans-narrow/30-0-liberation-sans-narrow.conf
create mode 100644 meta-oe/recipes-graphics/ttf-fonts/
ttf-liberation-sans-narrow_1.07.4.bb
create mode 100644 meta-oe/recipes-graphics/ttf-fonts/
ttf-vlgothic_20141206.bb

--
2.6.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Signature · 2 lines
Regards,
Neil | Kai Kang