mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
libdraw: fix subfont scaling
A subfont with n chars has n+1 Fontchars, so scalesubfont() needs to scale all n+1 info entries.
This commit is contained in:
parent
cc4571fec6
commit
a36e66f0d2
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ scalesubfont(Subfont *f, int scale)
|
||||||
f->height *= scale;
|
f->height *= scale;
|
||||||
f->ascent *= scale;
|
f->ascent *= scale;
|
||||||
|
|
||||||
for(j=0; j<f->n; j++) {
|
for(j=0; j<=f->n; j++) {
|
||||||
f->info[j].x *= scale;
|
f->info[j].x *= scale;
|
||||||
f->info[j].top *= scale;
|
f->info[j].top *= scale;
|
||||||
f->info[j].bottom *= scale;
|
f->info[j].bottom *= scale;
|
||||||
|
|
Loading…
Reference in a new issue