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;
|
e = 1;
|
||||||
k = FT_Get_Char_Index(face, i);
|
k = FT_Get_Char_Index(face, i);
|
||||||
if(k != 0) {
|
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) {
|
if(e || face->glyph->advance.x <= 0) {
|
||||||
fc->width = 0;
|
fc->width = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue