Skip to content

Commit

Permalink
Also check for maximum character width in checkfont
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Matsuoka <[email protected]>
  • Loading branch information
cmatsuoka committed Oct 17, 2015
1 parent 27cc19b commit c2c47a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions chkfont.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,11 @@ if (maxlen<1) {
ec++;
weregone(1); if (gone) return;
}
if (maxlen>255) {
printf("%s: ERROR (fatal)- character too wide.\n",fontfilename);
ec++;
weregone(1); if (gone) return;
}
if (old_layout<-1) {
printf("%s: ERROR- old_layout < -1.\n",fontfilename);
ec++;
Expand Down

0 comments on commit c2c47a0

Please sign in to comment.