NuTyX official Forum
Help => General => Topic started by: cdrw on Tue Sep 19 14:08:52 2017
-
I like the fonts that I used. The first thing I did - opacity your favorite fonts in NuTyX.
Their little - Roboto Condensed for DE MATE, Go monospace for ediror Pluma and font Console for Midnight Commander.
I am sharing my recipes with you. If I did wrong, write. I love to learn.
Pkgfile for Roboto:
# Description: Google Roboto condensed fonts.
# URL: https://fonts.google.com/specimen/Roboto+Condensed
# Packager: cdrw
# Depends on: xorg-server
CWD=`pwd`
name=roboto-fonts
version=2.136
release=1
source=(https://material-design.storage.googleapis.com/publish/material_v_9/0B0J8hsRkk91LRjU4U1NSeXdjd1U/RobotoTTF.zip)
echo 'fc-cache -v /usr/share/fonts/roboto-fonts
' > $name.post-install
build() {
cd $SRC
install -v -d -m755 $PKG/usr/share/fontconfig/conf.avail
install -v -d -m755 $PKG/etc/fonts/conf.d
install -d $PKG/usr/share/fonts/roboto-fonts/
install -m644 *.ttf $PKG/usr/share/fonts/roboto-fonts/
# install fontconfig files
echo '<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<alias>
<family>sans-serif</family>
<prefer>
<family>Roboto Condensed</family>
</prefer>
</alias>
<alias>
<family>Roboto Condensed</family>
<default>
<family>sans-serif</family>
</default>
</alias>
<match target="scan">
test name="family">
<string>Roboto Condensed</string>
</test>
<edit name="width">
<const>condensed</const>
</edit>
</match>
</fontconfig>
' > $PKG/usr/share/fontconfig/conf.avail/64-roboto-condensed-fonts.conf
echo '<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<alias>
<family>sans-serif</family>
<prefer>
<family>Roboto</family>
</prefer>
</alias>
<alias>
<family>Roboto</family>
<default>
<family>sans-serif</family>
</default>
</alias>
<match target="scan">
<test name="style">
<string>Thin</string>
</test>
<edit name="weight">
<const>thin</const>
</edit>
</match>
<match target="scan">
<test name="style">
<string>Thin Italic</string>
</test>
<edit name="weight">
const>thin</const>
</edit>
</match>
<match target="scan">
<test name="style">
<string>Black</string>
</test>
<edit name="weight">
<const>black</const>
</edit>
</match>
<match target="scan">
<test name="style">
<string>Black Italic</string>
</test>
<edit name="weight">
<const>black</const>
</edit>
</match>
</fontconfig>
' > $PKG/usr/share/fontconfig/conf.avail/64-roboto-fonts.conf
( cd $PKG/etc/fonts/conf.d ; ln -sf usr/share/fontconfig/conf.avail/64-roboto-condensed-fonts.conf . )
( cd $PKG/etc/fonts/conf.d ; ln -sf usr/share/fontconfig/conf.avail/64-roboto-fonts.conf . )
}
-
Pkgfile for Go
# Description: The font family, called Go, proportional and fixed-width faces in normal, bold, and italic renderings.
# URL: https://blog.golang.org/go-fonts
# Packager: cdrw
# Depends on: xorg-server
name=go-fonts
version=1.0
release=1
CWD=`pwd`
git clone https://go.googlesource.com/image
mv image/font/gofont/ttfs .
rm -rf image
mv ttfs $name-$version
tar --gzip -c -f $name-$version.tar.gz $name-$version
rm -rf $name-$version
echo 'fc-cache -v /usr/share/fonts/go-fonts
' > go-fonts.post-install
build() {
( cd $CWD/work/src; tar --gzip -xf $CWD/$name-$version.tar.gz )
cd $name-$version
install -v -d -m755 $PKG/usr/share/fontconfig/conf.avail
install -v -d -m755 $PKG/etc/fonts/conf.d
install -v -d -m755 $PKG/usr/share/fonts/go-fonts
install -v -m644 *.ttf $PKG/usr/share/fonts/go-fonts/
echo '<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<!-- Microsoft -->
<alias binding="same">
<family>Cambria</family>
<accept>
<family>Go</family>
</accept>
</alias>
<alias binding="same">
<family>Go</family>
<default>
<family>Cambria</family>
</default>
</alias>
</fontconfig>
' > $PKG/usr/share/fontconfig/conf.avail/33-go-fonts-fontconfig.conf
echo '<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<alias>
<family>serif</family>
<prefer>
<family>Go</family>
</prefer>
</alias>
<alias>
<family>Go</family>
<default>
<family>serif</family>
</default>
</alias>
</fontconfig>
' > $PKG/usr/share/fontconfig/conf.avail/63-go-fonts-fontconfig.conf
( cd $PKG/etc/fonts/conf.d ; ln -sf usr/share/fontconfig/conf.avail/33-go-fonts-fontconfig.conf . )
( cd $PKG/etc/fonts/conf.d ; ln -sf usr/share/fontconfig/conf.avail/63-go-fonts-fontconfig.conf . )
}
Pkgfile for Console
# Description: Monospace bitmap font (for X11 and console)
# URL: URL: http://www.xorg.net
# Packager: cdrw
# Depends on: xorg-server
CWD=`pwd`
name=misc-console-font
version=0.3
release=1
wget -c ftp://213.85.246.177/pub/FreeBSD/ports/x11/kdebase3/work/kdebase-3.5.10/konsole/fonts/console8x16.pcf.gz
wget -c ftp://213.85.246.177/pub/FreeBSD/ports/x11/kdebase3/work/kdebase-3.5.10/konsole/fonts/9x15.pcf.gz
tar -cvzf $name-$version.tar.gz console8x16.pcf.gz 9x15.pcf.gz
rm -f console8x16.pcf.gz
rm -f 9x15.pcf.gz
echo 'fc-cache -v /usr/share/fonts/misc
' > misc-console-font.post-install
build(){
( cd $CWD/work/src; tar --gzip -xf $CWD/$name-$version.tar.gz )
cd $SRC
install -v -d -m755 $PKG/usr/share/fontconfig/conf.avail
install -v -d -m755 $PKG/etc/fonts/conf.d
install -v -d -m755 $PKG/usr/share/fonts/misc
install -v -m644 *.pcf.gz $PKG/usr/share/fonts/misc/
# install fontconfig files
echo '<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<alias>
<family>monospace</family>
<prefer>
<family>Console</family>
</prefer>
</alias>
<alias>
<family>Console</family>
<default>
<family>monospace</family>
</default>
</alias>
</fontconfig>
' > $PKG/usr/share/fontconfig/conf.avail/63-font-misc-console-font.conf
( cd $PKG/etc/fonts/conf.d ; ln -sf usr/share/fontconfig/conf.avail/63-font-misc-console-font.conf . )
}
So it looks I have:
(http://f2.s.qip.ru/~18HME8Zur.png) (http://shot.qip.ru/00u5R9-218HME8Zur/)
-
Thanks a lot for your proposal recepts, I also added you screenshot to the available screenshots on the website
-
It would be most true that it was.