mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
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.
This commit is contained in:
parent
185fd7db05
commit
cc48e73a96
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue