diff --git a/scripts/docsfontconfig/fonts.conf b/scripts/docsfontconfig/fonts.conf new file mode 100644 index 0000000..2de227a --- /dev/null +++ b/scripts/docsfontconfig/fonts.conf @@ -0,0 +1,100 @@ + + + + + + Fonts configuration file + + + + /usr/share/fonts + /usr/local/share/fonts + fonts + + + /texlive/texmf-dist/fonts + + + + + mono + + + monospace + + + + + + + sans serif + + + sans-serif + + + + + + + sans + + + sans-serif + + + + + + system ui + + + system-ui + + + + + + + *.dpkg-tmp + + + + + *.dpkg-new + + + + + conf.d + + + + /var/cache/fontconfig + fontconfig + + ~/.fontconfig + + + + + 30 + + + + + diff --git a/scripts/run-docs-build b/scripts/run-docs-build index 9945d6b..a001fb2 100755 --- a/scripts/run-docs-build +++ b/scripts/run-docs-build @@ -71,12 +71,18 @@ if [ -e /srv/autobuilder/valkyrie.yocto.io/ ]; then zcat < install-tl-unx.tar.gz | tar xf - cd install-tl-*/ ./install-tl --scheme=small --texdir=${textooldir} --no-interaction - PATH=$PATH:${textooldir}/bin/x86_64-linux tlmgr install titlesec varwidth tabulary needspace upquote framed capt-of wrapfig fncychap gnu-freefont ctex latexmk + PATH=$PATH:${textooldir}/bin/x86_64-linux tlmgr install titlesec varwidth tabulary needspace upquote framed capt-of wrapfig fncychap gnu-freefont ctex latexmk nimbus15 popd fi PATH=$PATH:${textooldir}/bin/x86_64-linux fi +# Provide our own fonts.conf path to make fonts installed with tlmgr available +# system-wide. It will pick up the fonts.conf file in this directory. +# This is then used by rsvg-convert to pick up the Nimbus font when converting +# files. +export FONTCONFIG_PATH="$scriptdir/docsfontconfig" + # Getting the old docbook built docs from an archive. Not rebuilding them. docbookarchive_localpath=${sharedir}/cluster-downloads-cache/`basename ${docbookarchive_url}` if [ ! -e ${docbookarchive_localpath} ]; then