summaryrefslogtreecommitdiff
path: root/repo/font-liberation
diff options
context:
space:
mode:
Diffstat (limited to 'repo/font-liberation')
-rw-r--r--repo/font-liberation/30-liberation-mono.conf19
-rw-r--r--repo/font-liberation/30-liberation-sans.conf19
-rw-r--r--repo/font-liberation/30-liberation-serif.conf19
-rw-r--r--repo/font-liberation/45-liberation.conf26
-rw-r--r--repo/font-liberation/90-liberation.conf191
-rw-r--r--repo/font-liberation/font-liberation.xibuild30
6 files changed, 304 insertions, 0 deletions
diff --git a/repo/font-liberation/30-liberation-mono.conf b/repo/font-liberation/30-liberation-mono.conf
new file mode 100644
index 0000000..7cab434
--- /dev/null
+++ b/repo/font-liberation/30-liberation-mono.conf
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+
+ <!-- Microsoft -->
+ <alias binding="same">
+ <family>Courier New</family>
+ <accept>
+ <family>Liberation Mono</family>
+ </accept>
+ </alias>
+ <alias binding="same">
+ <family>Liberation Mono</family>
+ <default>
+ <family>Courier New</family>
+ </default>
+ </alias>
+
+</fontconfig>
diff --git a/repo/font-liberation/30-liberation-sans.conf b/repo/font-liberation/30-liberation-sans.conf
new file mode 100644
index 0000000..648974a
--- /dev/null
+++ b/repo/font-liberation/30-liberation-sans.conf
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+
+ <!-- Microsoft -->
+ <alias binding="same">
+ <family>Arial</family>
+ <accept>
+ <family>Liberation Sans</family>
+ </accept>
+ </alias>
+ <alias binding="same">
+ <family>Liberation Sans</family>
+ <default>
+ <family>Arial</family>
+ </default>
+ </alias>
+
+</fontconfig>
diff --git a/repo/font-liberation/30-liberation-serif.conf b/repo/font-liberation/30-liberation-serif.conf
new file mode 100644
index 0000000..dac6a60
--- /dev/null
+++ b/repo/font-liberation/30-liberation-serif.conf
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+
+ <!-- Microsoft -->
+ <alias binding="same">
+ <family>Times New Roman</family>
+ <accept>
+ <family>Liberation Serif</family>
+ </accept>
+ </alias>
+ <alias binding="same">
+ <family>Liberation Serif</family>
+ <default>
+ <family>Times New Roman</family>
+ </default>
+ </alias>
+
+</fontconfig>
diff --git a/repo/font-liberation/45-liberation.conf b/repo/font-liberation/45-liberation.conf
new file mode 100644
index 0000000..4c41678
--- /dev/null
+++ b/repo/font-liberation/45-liberation.conf
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+
+ <alias>
+ <family>Liberation Mono</family>
+ <default>
+ <family>monospace</family>
+ </default>
+ </alias>
+
+ <alias>
+ <family>Liberation Sans</family>
+ <default>
+ <family>sans-serif</family>
+ </default>
+ </alias>
+
+ <alias>
+ <family>Liberation Serif</family>
+ <default>
+ <family>serif</family>
+ </default>
+ </alias>
+
+</fontconfig>
diff --git a/repo/font-liberation/90-liberation.conf b/repo/font-liberation/90-liberation.conf
new file mode 100644
index 0000000..6c7736d
--- /dev/null
+++ b/repo/font-liberation/90-liberation.conf
@@ -0,0 +1,191 @@
+<?xml version='1.0'?>
+<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
+<fontconfig>
+
+ <!-- Liberation Mono -->
+ <match target="font">
+ <test name="force_autohint">
+ <bool>false</bool>
+ </test>
+ <test name="family">
+ <string>Liberation Mono</string>
+ </test>
+ <edit name="antialias" mode="assign">
+ <bool>true</bool>
+ </edit>
+ <edit name="hinting" mode="assign">
+ <bool>true</bool>
+ </edit>
+ <edit name="hintstyle" mode="assign">
+ <const>hintslight</const>
+ </edit>
+ <edit name="autohint" mode="assign">
+ <bool>false</bool>
+ </edit>
+ </match>
+
+ <match target="font">
+ <test name="force_autohint">
+ <bool>false</bool>
+ </test>
+ <test name="family">
+ <string>Liberation Mono</string>
+ </test>
+ <test name="pixelsize" compare="more">
+ <double>10.5</double>
+ </test>
+ <test name="pixelsize" compare="less">
+ <double>13.5</double>
+ </test>
+ <edit name="autohint" mode="assign">
+ <bool>false</bool>
+ </edit>
+ <edit name="antialias" mode="assign">
+ <bool>true</bool>
+ </edit>
+ <edit name="hinting" mode="assign">
+ <bool>true</bool>
+ </edit>
+ <edit name="hintstyle" mode="assign">
+ <const>hintfull</const>
+ </edit>
+ </match>
+
+ <match target="font">
+ <test name="force_autohint">
+ <bool>false</bool>
+ </test>
+ <test name="family">
+ <string>Liberation Mono</string>
+ </test>
+ <test name="pixelsize" compare="more">
+ <double>15.5</double>
+ </test>
+ <test name="pixelsize" compare="less">
+ <double>17.5</double>
+ </test>
+ <edit name="autohint" mode="assign">
+ <bool>false</bool>
+ </edit>
+ <edit name="antialias" mode="assign">
+ <bool>true</bool>
+ </edit>
+ <edit name="hinting" mode="assign">
+ <bool>true</bool>
+ </edit>
+ <edit name="hintstyle" mode="assign">
+ <const>hintfull</const>
+ </edit>
+ </match>
+
+ <match target="font">
+ <test name="force_autohint">
+ <bool>false</bool>
+ </test>
+ <test name="family">
+ <string>Liberation Mono</string>
+ </test>
+ <test name="pixelsize" compare="more">
+ <double>19.5</double>
+ </test>
+ <test name="pixelsize" compare="less">
+ <double>22.5</double>
+ </test>
+ <edit name="autohint" mode="assign">
+ <bool>false</bool>
+ </edit>
+ <edit name="antialias" mode="assign">
+ <bool>true</bool>
+ </edit>
+ <edit name="hinting" mode="assign">
+ <bool>true</bool>
+ </edit>
+ <edit name="hintstyle" mode="assign">
+ <const>hintfull</const>
+ </edit>
+ </match>
+
+ <match target="font">
+ <test name="family">
+ <string>Liberation Mono</string>
+ </test>
+ <test name="pixelsize" compare="less_eq">
+ <double>12.0</double>
+ </test>
+ <edit name="lcd_filter" mode="assign">
+ <const>lcdlegacy</const>
+ </edit>
+ </match>
+
+ <!-- Liberation Sans -->
+ <match target="font">
+ <test name="force_autohint">
+ <bool>false</bool>
+ </test>
+ <test name="family">
+ <string>Liberation Sans</string>
+ </test>
+ <edit name="antialias" mode="assign">
+ <bool>true</bool>
+ </edit>
+ <edit name="hinting" mode="assign">
+ <bool>true</bool>
+ </edit>
+ <edit name="hintstyle" mode="assign">
+ <const>hintslight</const>
+ </edit>
+ <edit name="autohint" mode="assign">
+ <bool>false</bool>
+ </edit>
+ </match>
+
+ <match target="font">
+ <test name="force_autohint">
+ <bool>false</bool>
+ </test>
+ <test name="family">
+ <string>Liberation Sans</string>
+ </test>
+ <test name="pixelsize" compare="less">
+ <double>12.5</double>
+ </test>
+ <edit name="autohint" mode="assign">
+ <bool>false</bool>
+ </edit>
+ <edit name="antialias" mode="assign">
+ <bool>true</bool>
+ </edit>
+ <edit name="hinting" mode="assign">
+ <bool>true</bool>
+ </edit>
+ <edit name="hintstyle" mode="assign">
+ <const>hintfull</const>
+ </edit>
+ <edit name="lcd_filter" mode="assign">
+ <const>lcdlegacy</const>
+ </edit>
+ </match>
+
+ <!-- Liberation Serif -->
+ <match target="font">
+ <test name="force_autohint">
+ <bool>false</bool>
+ </test>
+ <test name="family">
+ <string>Liberation Serif</string>
+ </test>
+ <edit name="antialias" mode="assign">
+ <bool>true</bool>
+ </edit>
+ <edit name="hinting" mode="assign">
+ <bool>true</bool>
+ </edit>
+ <edit name="hintstyle" mode="assign">
+ <const>hintslight</const>
+ </edit>
+ <edit name="autohint" mode="assign">
+ <bool>false</bool>
+ </edit>
+ </match>
+
+</fontconfig>
diff --git a/repo/font-liberation/font-liberation.xibuild b/repo/font-liberation/font-liberation.xibuild
new file mode 100644
index 0000000..b9921ec
--- /dev/null
+++ b/repo/font-liberation/font-liberation.xibuild
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+NAME="font-liberation"
+DESC="Fonts to replace commonly used Microsoft Windows fonts"
+
+MAKEDEPS=""
+
+PKG_VER=2.1.5
+SOURCE="https://github.com/liberationfonts/liberation-fonts/files/7261482/liberation-fonts-ttf-$PKG_VER.tar.gz"
+
+ADDITIONAL="
+30-liberation-mono.conf
+30-liberation-sans.conf
+30-liberation-serif.conf
+45-liberation.conf
+90-liberation.conf
+"
+
+package() {
+ install -D -m644 ./*.ttf -t "$PKG_DEST"/usr/share/fonts/liberation/
+
+ mkdir -p "$PKG_DEST"/etc/fonts/conf.d
+
+ local i; for i in "$BUILD_ROOT"/*.conf; do
+ install -D -m644 "$i" -t "$PKG_DEST"/etc/fonts/conf.avail/
+ ln -s ../conf.avail/${i##*/} "$PKG_DEST"/etc/fonts/conf.d/${i##*/}
+ done
+}
+
+