Commit e4507c45 authored by Fred Chasen's avatar Fred Chasen
Browse files

Add font.conf for Docker

parent b9b1ca3e
......@@ -22,6 +22,16 @@ RUN apt-get update && \
# See
RUN apt-get update && apt-get install -yq libgconf-2-4
# Update Freetype
COPY docker-font.conf /etc/fonts/local.conf
ENV FREETYPE_PROPERTIES="truetype:interpreter-version=35"
RUN apt-get update \
&& sh -c 'echo "deb stable main contrib non-free" >> /etc/apt/sources.list' \
&& apt-get update \
&& apt-get install -y ttf-mscorefonts-installer \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
# Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others)
# Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer
# installs, work.
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<match target="font">
<edit name="antialias" mode="assign"><bool>true</bool></edit>
<match target="font">
<edit name="hintstyle" mode="assign"><const>hintnone</const></edit>
<match target="font">
<edit mode="assign" name="hinting"><bool>false</bool></edit>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment