git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed links with xpdf-3.01
[swftools.git]
/
pdf2swf
/
ttf2pt1
/
t1asm.c
diff --git
a/pdf2swf/ttf2pt1/t1asm.c
b/pdf2swf/ttf2pt1/t1asm.c
index
9756231
..
1fa21d7
100644
(file)
--- a/
pdf2swf/ttf2pt1/t1asm.c
+++ b/
pdf2swf/ttf2pt1/t1asm.c
@@
-431,6
+431,7
@@
static void parse_charstring()
charstring_start();
while (fscanf(ifp, "%s", line) == 1) {
charstring_start();
while (fscanf(ifp, "%s", line) == 1) {
+ //char*bracket;
if (line[0] == '%') {
/* eat comment to end of line */
while (fgetc(ifp) != '\n' && !feof(ifp))
if (line[0] == '%') {
/* eat comment to end of line */
while (fgetc(ifp) != '\n' && !feof(ifp))
@@
-439,6
+440,9
@@
static void parse_charstring()
}
if (line[0] == '}')
break;
}
if (line[0] == '}')
break;
+ //if(bracket=strchr(line, '}')) {
+ // *bracket = 0;
+ //}
if (is_integer(line)) {
charstring_int(atoi(line));
} else {
if (is_integer(line)) {
charstring_int(atoi(line));
} else {
@@
-456,6
+460,10
@@
static void parse_charstring()
exit(1);
}
}
exit(1);
}
}
+ //if(bracket) {
+ // //line ended with }
+ // break;
+ //}
}
charstring_end();
}
}
charstring_end();
}
@@
-545,6
+553,11
@@
int runt1asm(int pfbflag)
{
char *p, *q, *r;
{
char *p, *q, *r;
+ /* need to reset this. (For some reason, if ttf2pt1.c fork()s, it doesn't
+ matter whether we reset this or not, triggering a bug which only appears
+ on Win32 */
+ active = 0;
+
pfb = pfbflag;
#endif
pfb = pfbflag;
#endif