mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
fontsrv: scale f->originy to match f->height on x11
Co-authored-by: dzklaim <smmoth.rp@gmail.com>
This commit is contained in:
parent
5f0fa185d0
commit
2c70acc3ab
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue