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 (from parent 1:
ce609b2
)
fixed a bug. (SWFFont now strdups it's font name)
author
kramm
<kramm>
Sat, 20 Oct 2001 19:36:49 +0000
(19:36 +0000)
committer
kramm
<kramm>
Sat, 20 Oct 2001 19:36:49 +0000
(19:36 +0000)
pdf2swf/swfoutput.cc
patch
|
blob
|
history
diff --git
a/pdf2swf/swfoutput.cc
b/pdf2swf/swfoutput.cc
index
074f28b
..
46f563a
100644
(file)
--- a/
pdf2swf/swfoutput.cc
+++ b/
pdf2swf/swfoutput.cc
@@
-206,8
+206,10
@@
void drawchar(struct swfoutput*obj, SWFFont*font, char*character, swfmatrix*m)
T1_OUTLINE*outline = font->getOutline(character);
char* charname = character;
T1_OUTLINE*outline = font->getOutline(character);
char* charname = character;
- if(!outline)
+ if(!outline) {
+ logf("Didn't find %s in current charset", character);
return;
return;
+ }
swfmatrix m2=*m;
m2.m11/=100;
swfmatrix m2=*m;
m2.m11/=100;
@@
-251,7
+253,7
@@
SWFFont::SWFFont(char*name, int id, char*filename)
T1_LoadFont(id);
this->name = strdup(T1_GetFontFileName(id));
T1_LoadFont(id);
this->name = strdup(T1_GetFontFileName(id));
- this->fontid = name;
+ this->fontid = strdup(name);
this->t1id = id;
char**a= T1_GetAllCharNames(id);
this->t1id = id;
char**a= T1_GetAllCharNames(id);