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:
matheuristic 2023-08-20 20:57:39 -04:00 committed by Dan Cross
parent cc4571fec6
commit a36e66f0d2

View file

@ -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;