This repository has been archived by the owner on Apr 3, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There is a known *issue in Debian distros around subpixel hinting & font smoothing. Link below provides a description & an example font configuration for fixing it. This was highlighted in the **below wkhtmltopdf issue. The font configuration(according to the Readme found in `fonts/config.d/`) relies on ordering hence the `10-` prefix. * https://wiki.debian.org/Fonts#Subpixel-hinting_and_Font-smoothing ** wkhtmltopdf/wkhtmltopdf#45
- Loading branch information
Dan Palmer
committed
Mar 3, 2016
1 parent
ec1c816
commit 3778e6d
Showing
3 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |