tfontsrv: increase x11 font height scale (#111) - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit ed959cfba326356a5cdea1a12c8ac17b5365486c
DIR parent f3ed5754b1c4ccc616afb1fbb1ce65e1f8f29808
HTML Author: iru- <iru.muzgo@gmail.com>
Date: Tue, 13 Nov 2018 21:01:04 -0800
fontsrv: increase x11 font height scale (#111)
Diffstat:
M src/cmd/fontsrv/x11.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/src/cmd/fontsrv/x11.c b/src/cmd/fontsrv/x11.c
t@@ -77,7 +77,7 @@ load(XFont *f)
return;
}
f->unit = face->units_per_EM;
- f->height = (int)((face->ascender - face->descender) * 1.2);
+ f->height = (int)((face->ascender - face->descender) * 1.35);
f->originy = face->descender; // bbox.yMin (or descender) is negative, becase the baseline is y-coord 0
for(charcode=FT_Get_First_Char(face, &glyph_index); glyph_index != 0;