aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/fontsrv
diff options
context:
space:
mode:
authoriru- <iru.muzgo@gmail.com>2018-11-13 21:01:04 -0800
committerRuss Cox <rsc@golang.org>2018-11-14 00:01:04 -0500
commited959cfba326356a5cdea1a12c8ac17b5365486c (patch)
treef4803d1de79160607787def034e3500d04134acb /src/cmd/fontsrv
parentf3ed5754b1c4ccc616afb1fbb1ce65e1f8f29808 (diff)
downloadplan9port-ed959cfba326356a5cdea1a12c8ac17b5365486c.tar.gz
plan9port-ed959cfba326356a5cdea1a12c8ac17b5365486c.tar.bz2
plan9port-ed959cfba326356a5cdea1a12c8ac17b5365486c.zip
fontsrv: increase x11 font height scale (#111)
Diffstat (limited to 'src/cmd/fontsrv')
-rw-r--r--src/cmd/fontsrv/x11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/fontsrv/x11.c b/src/cmd/fontsrv/x11.c
index f93c031e..4137f9ca 100644
--- a/src/cmd/fontsrv/x11.c
+++ b/src/cmd/fontsrv/x11.c
@@ -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;