aboutsummaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
authordzklaim <smooth.rp@gmail.com>2020-05-30 01:02:10 +0000
committerGitHub <noreply@github.com>2020-05-29 21:02:10 -0400
commit2c70acc3ab751ab1ccb1999f1d22310ad8c35b27 (patch)
treee73a970f034133d653c4f139825c54e077a5573d /src/cmd
parent5f0fa185d0a978b45de5bf206193769596c056b5 (diff)
downloadplan9port-2c70acc3ab751ab1ccb1999f1d22310ad8c35b27.tar.gz
plan9port-2c70acc3ab751ab1ccb1999f1d22310ad8c35b27.tar.bz2
plan9port-2c70acc3ab751ab1ccb1999f1d22310ad8c35b27.zip
fontsrv: scale f->originy to match f->height on x11
Co-authored-by: dzklaim <smmoth.rp@gmail.com>
Diffstat (limited to 'src/cmd')
-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 c78ad036..417dcfa6 100644
--- a/src/cmd/fontsrv/x11.c
+++ b/src/cmd/fontsrv/x11.c
@@ -78,7 +78,7 @@ load(XFont *f)
}
f->unit = face->units_per_EM;
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
+ f->originy = face->descender * 1.35; // bbox.yMin (or descender) is negative, because the baseline is y-coord 0
for(charcode=FT_Get_First_Char(face, &glyph_index); glyph_index != 0;
charcode=FT_Get_Next_Char(face, charcode, &glyph_index)) {