Fix bug in AFM character width parsing.
This commit is contained in:
parent
282f7270c1
commit
db490e5e34
|
@ -51,7 +51,7 @@ static void PSDRV_AFMGetCharMetrics(AFM *afm, FILE *fp)
|
||||||
do {
|
do {
|
||||||
*cp = '\0';
|
*cp = '\0';
|
||||||
cp--;
|
cp--;
|
||||||
} while(cp > line && isspace(*cp));
|
} while(cp >= line && isspace(*cp));
|
||||||
|
|
||||||
curpos = line;
|
curpos = line;
|
||||||
while(*curpos) {
|
while(*curpos) {
|
||||||
|
@ -205,7 +205,8 @@ static AFM *PSDRV_AFMParse(char const *file)
|
||||||
else if(!strncmp("Black", value, 5))
|
else if(!strncmp("Black", value, 5))
|
||||||
afm->Weight = FW_BLACK;
|
afm->Weight = FW_BLACK;
|
||||||
else {
|
else {
|
||||||
FIXME("%s: Unkown AFM Weight '%s'\n", file,value);
|
WARN("%s specifies unknown Weight '%s'; treating as Roman\n",
|
||||||
|
file, value);
|
||||||
afm->Weight = FW_NORMAL;
|
afm->Weight = FW_NORMAL;
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue