Skip to content

Commit

Permalink
build: Use fonts from xml2rfc-fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
kesara committed Oct 2, 2023
1 parent b0a0d35 commit 45320a3
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions docker/base.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,12 @@ RUN apt-get update --fix-missing && \
apt-get clean -y

# Install required fonts
RUN mkdir -p ~/.fonts/opentype && \
wget -q https://noto-website-2.storage.googleapis.com/pkgs/Noto-unhinted.zip && \
unzip -q Noto-unhinted.zip -d ~/.fonts/opentype/ && \
rm Noto-unhinted.zip && \
wget -q https://fonts.google.com/download?family=Roboto%20Mono -O roboto-mono.zip && \
unzip -q roboto-mono.zip -d ~/.fonts/opentype/ && \
rm roboto-mono.zip && \
wget -q https://fonts.google.com/download?family=Noto%20Sans%20Math -O noto-sans-math.zip && \
unzip -q noto-sans-math.zip -d ~/.fonts/opentype/ && \
rm noto-sans-math.zip && \
RUN mkdir -p ~/.fonts/opentype /tmp/fonts && \
wget -q -O /tmp/fonts.tar.gz https://github.com/ietf-tools/xml2rfc-fonts/archive/refs/tags/3.18.0.tar.gz && \
tar zxf /tmp/fonts.tar.gz -C /tmp/fonts && \
mv /tmp/fonts/*/noto/* ~/.fonts/opentype/ && \
mv /tmp/fonts/*/roboto_mono/* ~/.fonts/opentype/ && \
rm -rf /tmp/fonts.tar.gz /tmp/fonts/ && \
ln -sf ~/.fonts/opentype/*.[to]tf /usr/share/fonts/truetype/ && \
fc-cache -f

Expand Down

0 comments on commit 45320a3

Please sign in to comment.