commit 2c70acc3ab751ab1ccb1999f1d22310ad8c35b27 from: dzklaim via: GitHub date: Sat May 30 01:02:10 2020 UTC fontsrv: scale f->originy to match f->height on x11 Co-authored-by: dzklaim commit - 5f0fa185d0a978b45de5bf206193769596c056b5 commit + 2c70acc3ab751ab1ccb1999f1d22310ad8c35b27 blob - c78ad03667f1cc7f97a4d8de509b689d7b6006d1 blob + 417dcfa6c7d4b04c2c0708eb680c3e5b88b36fdf --- src/cmd/fontsrv/x11.c +++ 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)) {