From cc48e73a96c863784fb0bc46e69bccf509890827 Mon Sep 17 00:00:00 2001 From: Xiao-Yong Date: Mon, 13 Jan 2020 10:02:13 -0600 Subject: 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. --- src/cmd/fontsrv/x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/fontsrv') 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; -- cgit v1.2.3