Skip to content

Commit

Permalink
Install full extended font sets in Docker image to provide support fo…
Browse files Browse the repository at this point in the history
…r asian glyphs
  • Loading branch information
ngandrass committed Dec 10, 2024
1 parent c7382af commit 4f06d17
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## Version 2.1.3 (YYYY-MM-DD)

- Fix issues with asian characters when using the provided Docker image


## Version 2.1.2 (2024-12-04)

- Update Python dependencies
Expand Down
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,16 @@ RUN set -e && \
mkdir ${USER_HOME}
WORKDIR ${USER_HOME}

# Install chromium dependencies
# Install fonts and chromium dependencies (Note: ttf-mscorefonts-installer is not allowed to be distribured here due to its license)
RUN set -e && \
apt-get update && \
apt-get install -y $(apt-cache depends chromium | grep Depends | grep --invert-match "Depends: <" | sed "s/.*Depends:\ //" | tr '\n' ' ') && \
apt-get install -y \
fonts-firacode \
fonts-liberation \
fonts-noto \
fonts-open-sans \
fonts-roboto \
$(apt-cache depends chromium | grep Depends | grep --invert-match "Depends: <" | sed "s/.*Depends:\ //" | tr '\n' ' ') && \
apt-get -y clean && \
rm -rf /var/lib/apt/lists/*

Expand Down

0 comments on commit 4f06d17

Please sign in to comment.