git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
90a6586
)
fixed missing font bug.
author
kramm
<kramm>
Sat, 12 Jun 2004 16:08:19 +0000
(16:08 +0000)
committer
kramm
<kramm>
Sat, 12 Jun 2004 16:08:19 +0000
(16:08 +0000)
pdf2swf/swfoutput.cc
patch
|
blob
|
history
diff --git
a/pdf2swf/swfoutput.cc
b/pdf2swf/swfoutput.cc
index
0ad1432
..
509a6e1
100644
(file)
--- a/
pdf2swf/swfoutput.cc
+++ b/
pdf2swf/swfoutput.cc
@@
-899,6
+899,11
@@
static void drawchar(struct swfoutput*obj, SWFFont*font, char*character, int cha
if(usefonts && ! drawonlyshapes)
{
int charid = font->getSWFCharID(character, charnr);
if(usefonts && ! drawonlyshapes)
{
int charid = font->getSWFCharID(character, charnr);
+ if(charid<0) {
+ msg("<warning> Didn't find %s in current charset (%s)",
+ FIXNULL(character),FIXNULL(font->getName()));
+ return;
+ }
if(shapeid>=0)
endshape();
if(textid<0)
if(shapeid>=0)
endshape();
if(textid<0)
@@
-1228,7
+1233,7
@@
int SWFFont::getSWFCharID(char*name, int charnr)
return getSWFCharID(this->standardtable[charnr], -1);
}
msg("<warning> Didn't find character '%s' in font '%s'", FIXNULL(name), this->name);
return getSWFCharID(this->standardtable[charnr], -1);
}
msg("<warning> Didn't find character '%s' in font '%s'", FIXNULL(name), this->name);
- return 0;
+ return -1;
}
int SWFFont::getWidth(char*name)
}
int SWFFont::getWidth(char*name)