Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
Fix font kerning in container
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-palmer committed Mar 3, 2016
1 parent ec1c816 commit dd5a02f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Expand Up @@ -9,6 +9,7 @@ RUN rm -rf wkhtmltox

RUN cp -r ./fonts/liberation_sans /usr/share/fonts/truetype/
RUN fc-cache -f -v
RUN cp ./fonts/10-wkhtmltopdf.conf /etc/fonts/conf.d/

ENV UNICORN_PORT 3000
EXPOSE $UNICORN_PORT
Expand Down
29 changes: 29 additions & 0 deletions fonts/10-wkhtmltopdf.conf
@@ -0,0 +1,29 @@
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hintstyle">
<const>hintslight</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="lcdfilter">
<const>lcddefault</const>
</edit>
</match>
</fontconfig>

0 comments on commit dd5a02f

Please sign in to comment.