Skip to content

Commit 5433f9c

Browse files
committed
change: replace bundled Noto fonts with an Adobe NotDef tofu fallback in the Docker image
1 parent 3b2035e commit 5433f9c

2 files changed

Lines changed: 7 additions & 30 deletions

File tree

Dockerfile

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ RUN set -x \
3333
unzip \
3434
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* `npm config get cache`/_npx
3535

36-
# Install fonts
37-
RUN set -x \
38-
&& apt-get update -qq \
39-
&& apt-get upgrade -yqq \
40-
# install all Noto fonts
41-
&& apt-get install -y fonts-noto \
42-
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
36+
# Render glyphs that no other font covers as visible tofu boxes, not blank.
37+
# The license sits where apt-installed fonts keep theirs.
38+
RUN curl -fsSL -o /usr/local/share/fonts/AND-Regular.otf \
39+
https://raw.githubusercontent.com/adobe-fonts/adobe-notdef/1.001/AND-Regular.otf \
40+
&& mkdir -p /usr/share/doc/adobe-notdef \
41+
&& curl -fsSL -o /usr/share/doc/adobe-notdef/LICENSE.md \
42+
https://raw.githubusercontent.com/adobe-fonts/adobe-notdef/1.001/LICENSE.md
4343

4444
# Install Node.js
4545
RUN set -x \
@@ -64,9 +64,6 @@ RUN set -x \
6464
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*; \
6565
fi
6666

67-
# Font aliases for Noto CJK fonts
68-
COPY build/fonts.conf /etc/fonts/local.conf
69-
7067
RUN set -x \
7168
&& mkdir -p /opt \
7269
&& mkdir -p /data \

build/fonts.conf

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)