mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 20:06:43 +02:00
testing/ttf-carlito: new aport
This commit is contained in:
parent
fca1a13196
commit
97c7cca77e
12
testing/ttf-carlito/45-carlito.conf
Normal file
12
testing/ttf-carlito/45-carlito.conf
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||
<fontconfig>
|
||||
|
||||
<alias>
|
||||
<family>Carlito</family>
|
||||
<default>
|
||||
<family>serif</family>
|
||||
</default>
|
||||
</alias>
|
||||
|
||||
</fontconfig>
|
||||
56
testing/ttf-carlito/90-tt-carlito.conf
Normal file
56
testing/ttf-carlito/90-tt-carlito.conf
Normal file
@ -0,0 +1,56 @@
|
||||
<?xml version='1.0'?>
|
||||
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
|
||||
<fontconfig>
|
||||
|
||||
<match target="font">
|
||||
<test name="force_autohint">
|
||||
<bool>false</bool>
|
||||
</test>
|
||||
<test name="family">
|
||||
<string>Carlito</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>hintfull</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>Carlito</string>
|
||||
</test>
|
||||
<test name="weight" compare="less">
|
||||
<const>medium</const>
|
||||
</test>
|
||||
<test name="pixelsize" compare="more">
|
||||
<double>21.5</double>
|
||||
</test>
|
||||
<test name="pixelsize" compare="less">
|
||||
<double>22.5</double>
|
||||
</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>
|
||||
51
testing/ttf-carlito/APKBUILD
Normal file
51
testing/ttf-carlito/APKBUILD
Normal file
@ -0,0 +1,51 @@
|
||||
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
|
||||
# Maintainer:
|
||||
pkgname=ttf-carlito
|
||||
pkgver=20130920
|
||||
pkgrel=0
|
||||
pkgdesc="Carlito is a sans-serif font metrically compatible with Calibri."
|
||||
url="https://code.google.com/p/chromium/issues/detail?id=280557"
|
||||
arch="noarch"
|
||||
license="OFL"
|
||||
depends="fontconfig"
|
||||
depends_dev=""
|
||||
makedepends="$depends_dev"
|
||||
install=""
|
||||
subpackages=""
|
||||
# added fontconfig configuration from:
|
||||
# https://github.com/bohoomil/fontconfig-ultimate/tree/master/fontconfig_patches/fonts-settings
|
||||
source="http://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/crosextrafonts-carlito-$pkgver.tar.gz
|
||||
45-carlito.conf
|
||||
90-tt-carlito.conf"
|
||||
|
||||
_builddir="$srcdir"/crosextrafonts-carlito-$pkgver
|
||||
|
||||
build() {
|
||||
cd "$_builddir"
|
||||
}
|
||||
|
||||
package() {
|
||||
mkdir -p "$pkgdir"/usr/share/fonts/$pkgname \
|
||||
"$pkgdir"/etc/fonts/conf.avail \
|
||||
"$pkgdir"/etc/fonts/conf.d
|
||||
for i in "$_builddir"/*.ttf; do
|
||||
install -m644 $i \
|
||||
"$pkgdir"/usr/share/fonts/$pkgname/ || return 1
|
||||
done
|
||||
for j in "$srcdir"/*.conf; do
|
||||
install -m644 $j \
|
||||
"$pkgdir"/etc/fonts/conf.avail/ || return 1
|
||||
cd "$pkgdir"/etc/fonts/conf.d
|
||||
ln -sf /etc/fonts/conf.avail/${j##*/}
|
||||
done
|
||||
}
|
||||
|
||||
md5sums="c74b7223abe75949b4af367942d96c7a crosextrafonts-carlito-20130920.tar.gz
|
||||
7a8451365e94dbd7a399aaa508462393 45-carlito.conf
|
||||
320b4c0aa1f353f606bf3bcd6ed5873f 90-tt-carlito.conf"
|
||||
sha256sums="4bd12b6cbc321c1cf16da76e2c585c925ce956a08067ae6f6c64eff6ccfdaf5a crosextrafonts-carlito-20130920.tar.gz
|
||||
a70f2047fcb095a04a5764da0f3cbb9f9362ed3fcf4dadd2053aa68b889bcd1f 45-carlito.conf
|
||||
e9db1f94f67ac711fea16d9b8fca32de7b7ca44679cd6d701dd8925630ade1da 90-tt-carlito.conf"
|
||||
sha512sums="eb516060487d30353e06de711921c0d54c5844f2be69b1c1d37edac4b27303e9213a6bb306f309dc5827b2a6a2a37c9cb85b62368164eba6dd397dbaab3e3ba0 crosextrafonts-carlito-20130920.tar.gz
|
||||
1eb50a4f3bf1aa6c229059ef25a1344824ac3be179fa819f6613d1457758b4d79ae63e1872a4b54a32bc413d84f7a362c1f9fd9c8cd1265bfcf7abfc3f1b9c27 45-carlito.conf
|
||||
b859c5996a4942674979d4353e63ca59a383829e97713512a59910869841dbc923708880af74d9fdebb50ce482e21a2a8c8b1716973a676ee76f6248b3d1521d 90-tt-carlito.conf"
|
||||
Loading…
x
Reference in New Issue
Block a user