Skip to content

Commit

Permalink
ci(Dockerfile): fontconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
wohenbushuang authored Apr 8, 2024
1 parent 87fe14d commit 23e50c4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ENV LANG C.UTF-8

# install additional OS packages.
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends wget libfontconfig git make libfile-fcntllock-perl
&& apt-get -y install --no-install-recommends wget fontconfig git make libfile-fcntllock-perl

# TeXLive
WORKDIR /tmp
Expand All @@ -26,4 +26,8 @@ RUN YEAR=$(ls -d /usr/local/texlive/2* | sed -e 's/.*[/]//g') \
&& echo MANPATH=/usr/local/texlive/$YEAR/texmf-dist/doc/man:$MANPATH >> ~/.profile \
&& echo INFOPATH=/usr/local/texlive/$YEAR/texmf-dist/doc/info:$INFOPATH >> ~/.profile \
&& echo PATH=/usr/local/texlive/$YEAR/bin/x86_64-linux:$PATH >> ~/.profile \
&& . ~/.profile
&& . ~/.profile \
# System font configuration for XeTeX and LuaTeX
&& ln -s /usr/local/texlive/$YEAR/texmf-var/fonts/conf/texlive-fontconfig.conf /etc/fonts/conf.d/09-texlive.conf \ # Ref: https://www.tug.org/texlive/doc/texlive-en/texlive-en.html#x1-330003.4.4
&& fc-cache -fv

0 comments on commit 23e50c4

Please sign in to comment.