Skip to content

Commit

Permalink
Add Noto Fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
zsxsoft committed Jan 7, 2019
1 parent 62d1656 commit 86ae273
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN export NODEJS_HOST=https://nodejs.org/dist/; if [ "x$location" = "xchina" ];
&& (echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list) \
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
# Fonts (Chinese, wqy-microhei)
&& apt-get install -y --force-yes --no-install-recommends fonts-wqy-microhei \
&& apt-get install -y --force-yes --no-install-recommends fonts-noto fonts-wqy-microhei \
# nginx & PHP
&& LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php \
&& apt-get update \
Expand Down Expand Up @@ -57,6 +57,9 @@ RUN mkdir /data/certs \
&& cp /root/.mitmproxy/mitmproxy-ca-cert.pem /usr/local/share/ca-certificates/mitmproxy.crt \
&& update-ca-certificates --fresh

COPY ./docker-scripts/64-language-selector-prefer.conf /etc/fonts/conf.d/64-language-selector-prefer.conf
RUN fc-cache -fv

COPY package.json yarn.lock composer.json composer.lock /zbp-app-validator/
WORKDIR /zbp-app-validator/

Expand Down
31 changes: 31 additions & 0 deletions docker-scripts/64-language-selector-prefer.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>sans-serif</family>
<prefer>
<family>Noto Sans CJK SC</family>
<family>Noto Sans CJK TC</family>
<family>Noto Sans CJK JP</family>
<family>Noto Sans CJK KR</family>
</prefer>
</alias>
<alias>
<family>serif</family>
<prefer>
<family>Noto Serif CJK SC</family>
<family>Noto Serif CJK TC</family>
<family>Noto Serif CJK JP</family>
<family>Noto Serif CJK KR</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Noto Sans Mono CJK SC</family>
<family>Noto Sans Mono CJK TC</family>
<family>Noto Sans Mono CJK JP</family>
<family>Noto Sans Mono CJK KR</family>
</prefer>
</alias>
</fontconfig>

0 comments on commit 86ae273

Please sign in to comment.