1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-07-07 22:59:49 +03:00

sch2fig/lib.c (lib_parse): zero2 seems to be text style, ignore

This commit is contained in:
Werner Almesberger 2016-07-26 18:35:14 -03:00
parent 4d75a7f00e
commit 47707d700c

View File

@ -620,10 +620,13 @@ bool lib_parse(struct lib_ctx *ctx, const char *line)
*tilde = ' ';
}
}
/*
* zero2 seems to be the font style: 0 = normal, 1 = bold ?
*/
if (n == 12) {
if (zero1 || zero2) {
fprintf(stderr, "%u: only understand 0 x x\n",
ctx->lineno);
if (zero1) {
fprintf(stderr, "%u: only understand 0 x x\n"
"\"%s\"\n", ctx->lineno, line);
exit(1);
}
obj->u.text.style = decode_style(style);