Skip to content

Commit

Permalink
Update font installation in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
ThierryO committed Jun 12, 2019
1 parent 8d9646b commit e4c2304
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Expand Up @@ -42,13 +42,12 @@ RUN Rscript -e 'remotes::install_github("inbo/INBOmd")' \
&& Rscript -e 'tinytex::tlmgr_conf(c("auxtrees", "add", system.file("local_tex", package = "INBOmd")))'

## Install fonts
RUN mkdir /usr/local/lib/R/site-library/INBOmd/local_tex/fonts/truetype/calibri \
&& mkdir /usr/local/lib/R/site-library/INBOmd/local_tex/fonts/truetype/inconsolata \
RUN mkdir /root/.fonts \
&& wget https://www.wfonts.com/download/data/2014/12/12/calibri/calibri.zip \
&& unzip calibri.zip -d /usr/local/lib/R/site-library/INBOmd/local_tex/fonts/truetype/calibri \
&& unzip calibri.zip -d /root/.fonts \
&& rm calibri.zip \
&& wget -O /usr/local/lib/R/site-library/INBOmd/local_tex/fonts/truetype/inconsolata/Inconsolatazi4-Regular.otf http://mirrors.ctan.org/fonts/inconsolata/opentype/Inconsolatazi4-Regular.otf \
&& wget -O /usr/local/lib/R/site-library/INBOmd/local_tex/fonts/truetype/Inconsolatazi4-Bold.otf http://mirrors.ctan.org/fonts/inconsolata/opentype/Inconsolatazi4-Bold.otf \
&& wget -O /root/.fonts/Inconsolatazi4-Regular.otf http://mirrors.ctan.org/fonts/inconsolata/opentype/Inconsolatazi4-Regular.otf \
&& wget -O /root/.fonts/Inconsolatazi4-Bold.otf http://mirrors.ctan.org/fonts/inconsolata/opentype/Inconsolatazi4-Bold.otf \
&& fc-cache -fv \
&& updmap-sys

Expand Down

0 comments on commit e4c2304

Please sign in to comment.