commit cc48e73a96c863784fb0bc46e69bccf509890827 from: Xiao-Yong via: Russ Cox date: Mon Jan 13 16:02:13 2020 UTC 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. commit - 185fd7db0513a14c91749bfab3fe7dc30a64f480 commit + cc48e73a96c863784fb0bc46e69bccf509890827 blob - 4137f9ca4c8b6be1b6afe3d62163c564d8289c34 blob + 0f6b97bbf4b0fb4f2e2e9b8d7630aa041320b312 --- src/cmd/fontsrv/x11.c +++ src/cmd/fontsrv/x11.c @@ -176,7 +176,7 @@ mksubfont(XFont *xf, char *name, int lo, int hi, int s 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;