aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiao-Yong <xjin@anl.gov>2020-01-13 10:02:13 -0600
committerRuss Cox <rsc@swtch.com>2020-01-13 11:02:13 -0500
commitcc48e73a96c863784fb0bc46e69bccf509890827 (patch)
tree78b2c6fa7bbbdd48f5092c5113c0c2eda017a86a
parent185fd7db0513a14c91749bfab3fe7dc30a64f480 (diff)
downloadplan9port-cc48e73a96c863784fb0bc46e69bccf509890827.tar.gz
plan9port-cc48e73a96c863784fb0bc46e69bccf509890827.tar.bz2
plan9port-cc48e73a96c863784fb0bc46e69bccf509890827.zip
fontsrv: allow x11 hinting and disable autohint only (#254)
Some truetype fonts have good manual hinting. Ignoring hinting makes the font render badly on low resolution screens. This commit only disables the freetype autohinter, and allows hinting.
-rw-r--r--src/cmd/fontsrv/x11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/fontsrv/x11.c b/src/cmd/fontsrv/x11.c
index 4137f9ca..0f6b97bb 100644
--- a/src/cmd/fontsrv/x11.c
+++ b/src/cmd/fontsrv/x11.c
@@ -176,7 +176,7 @@ mksubfont(XFont *xf, char *name, int lo, int hi, int size, int antialias)
e = 1;
k = FT_Get_Char_Index(face, i);
if(k != 0) {
- e = FT_Load_Glyph(face, k, FT_LOAD_RENDER|FT_LOAD_NO_HINTING|(antialias ? 0:FT_LOAD_TARGET_MONO));
+ e = FT_Load_Glyph(face, k, FT_LOAD_RENDER|FT_LOAD_NO_AUTOHINT|(antialias ? 0:FT_LOAD_TARGET_MONO));
}
if(e || face->glyph->advance.x <= 0) {
fc->width = 0;