mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
add fonts.
This commit is contained in:
parent
45e85c8864
commit
2d8574d5d6
17
Dockerfile
17
Dockerfile
@ -85,6 +85,19 @@ RUN set -eux; \
|
|||||||
chown $USERNAME /var/log/neko/; \
|
chown $USERNAME /var/log/neko/; \
|
||||||
chown -R $USERNAME:$USERNAME /home/$USERNAME; \
|
chown -R $USERNAME:$USERNAME /home/$USERNAME; \
|
||||||
#
|
#
|
||||||
|
# install fonts
|
||||||
|
apt-get install -y --no-install-recommends \
|
||||||
|
# Emojis
|
||||||
|
fonts-noto-color-emoji \
|
||||||
|
# Chinese fonts
|
||||||
|
fonts-arphic-ukai fonts-arphic-uming \
|
||||||
|
# Japanese fonts
|
||||||
|
fonts-ipafont-mincho fonts-ipafont-gothic \
|
||||||
|
# Korean fonts
|
||||||
|
fonts-unfonts-core \
|
||||||
|
# Indian fonts
|
||||||
|
fonts-indic; \
|
||||||
|
#
|
||||||
# clean up
|
# clean up
|
||||||
apt-get clean -y; \
|
apt-get clean -y; \
|
||||||
rm -rf /var/lib/apt/lists/* /var/cache/apt/*
|
rm -rf /var/lib/apt/lists/* /var/cache/apt/*
|
||||||
@ -98,7 +111,9 @@ COPY runtime/xorg.conf /etc/neko/xorg.conf
|
|||||||
|
|
||||||
#
|
#
|
||||||
# copy runtime folders
|
# copy runtime folders
|
||||||
COPY runtime/icon-theme /home/$USERNAME/.icons/default
|
COPY --chown=$USERNAME runtime/icon-theme /home/$USERNAME/.icons/default
|
||||||
|
COPY runtime/fontconfig/* /etc/fonts/conf.d/
|
||||||
|
COPY runtime/fonts /usr/local/share/fonts
|
||||||
|
|
||||||
#
|
#
|
||||||
# set default envs
|
# set default envs
|
||||||
|
118
runtime/fontconfig/75-emoji.conf
Normal file
118
runtime/fontconfig/75-emoji.conf
Normal file
@ -0,0 +1,118 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||||
|
<fontconfig>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Add generic family -->
|
||||||
|
|
||||||
|
<match target="pattern">
|
||||||
|
<test qual="any" name="family"><string>emoji</string></test>
|
||||||
|
<edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
|
||||||
|
</match>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Set as final fallback for default families -->
|
||||||
|
|
||||||
|
<match target="pattern">
|
||||||
|
<test name="family"><string>sans</string></test>
|
||||||
|
<edit name="family" mode="append"><string>Noto Color Emoji</string></edit>
|
||||||
|
</match>
|
||||||
|
|
||||||
|
<match target="pattern">
|
||||||
|
<test name="family"><string>serif</string></test>
|
||||||
|
<edit name="family" mode="append"><string>Noto Color Emoji</string></edit>
|
||||||
|
</match>
|
||||||
|
|
||||||
|
<match target="pattern">
|
||||||
|
<test name="family"><string>sans-serif</string></test>
|
||||||
|
<edit name="family" mode="append"><string>Noto Color Emoji</string></edit>
|
||||||
|
</match>
|
||||||
|
|
||||||
|
<match target="pattern">
|
||||||
|
<test name="family"><string>monospace</string></test>
|
||||||
|
<edit name="family" mode="append"><string>Noto Color Emoji</string></edit>
|
||||||
|
</match>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Block Symbola from being a fallback -->
|
||||||
|
|
||||||
|
<selectfont>
|
||||||
|
<rejectfont>
|
||||||
|
<pattern>
|
||||||
|
<patelt name="family">
|
||||||
|
<string>Symbola</string>
|
||||||
|
</patelt>
|
||||||
|
</pattern>
|
||||||
|
</rejectfont>
|
||||||
|
</selectfont>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Use this font when other popular ones are specifically requested -->
|
||||||
|
|
||||||
|
<match target="pattern">
|
||||||
|
<test qual="any" name="family"><string>Android Emoji</string></test>
|
||||||
|
<edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
|
||||||
|
</match>
|
||||||
|
|
||||||
|
<match target="pattern">
|
||||||
|
<test qual="any" name="family"><string>Apple Color Emoji</string></test>
|
||||||
|
<edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
|
||||||
|
</match>
|
||||||
|
|
||||||
|
<match target="pattern">
|
||||||
|
<test qual="any" name="family"><string>EmojiSymbols</string></test>
|
||||||
|
<edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
|
||||||
|
</match>
|
||||||
|
|
||||||
|
<match target="pattern">
|
||||||
|
<test qual="any" name="family"><string>Emoji Two</string></test>
|
||||||
|
<edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
|
||||||
|
</match>
|
||||||
|
|
||||||
|
<match target="pattern">
|
||||||
|
<test qual="any" name="family"><string>EmojiTwo</string></test>
|
||||||
|
<edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
|
||||||
|
</match>
|
||||||
|
|
||||||
|
<match target="pattern">
|
||||||
|
<test qual="any" name="family"><string>Noto Color Emoji</string></test>
|
||||||
|
<edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
|
||||||
|
</match>
|
||||||
|
|
||||||
|
<match target="pattern">
|
||||||
|
<test qual="any" name="family"><string>Segoe UI Emoji</string></test>
|
||||||
|
<edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
|
||||||
|
</match>
|
||||||
|
|
||||||
|
<match target="pattern">
|
||||||
|
<test qual="any" name="family"><string>Segoe UI Symbol</string></test>
|
||||||
|
<edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
|
||||||
|
</match>
|
||||||
|
|
||||||
|
<match target="pattern">
|
||||||
|
<test qual="any" name="family"><string>Symbola</string></test>
|
||||||
|
<edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
|
||||||
|
</match>
|
||||||
|
|
||||||
|
<match target="pattern">
|
||||||
|
<test qual="any" name="family"><string>Twemoji</string></test>
|
||||||
|
<edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
|
||||||
|
</match>
|
||||||
|
|
||||||
|
<match target="pattern">
|
||||||
|
<test qual="any" name="family"><string>Twemoji Mozilla</string></test>
|
||||||
|
<edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
|
||||||
|
</match>
|
||||||
|
|
||||||
|
<match target="pattern">
|
||||||
|
<test qual="any" name="family"><string>TwemojiMozilla</string></test>
|
||||||
|
<edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
|
||||||
|
</match>
|
||||||
|
|
||||||
|
<match target="pattern">
|
||||||
|
<test qual="any" name="family"><string>Twitter Color Emoji</string></test>
|
||||||
|
<edit name="family" mode="assign" binding="same"><string>Noto Color Emoji</string></edit>
|
||||||
|
</match>
|
||||||
|
|
||||||
|
|
||||||
|
</fontconfig>
|
0
runtime/fonts/.gitkeep
Normal file
0
runtime/fonts/.gitkeep
Normal file
Loading…
Reference in New Issue
Block a user