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:
f50c53d
)
if font encoding is not unicode, try glyph[ascii2glyph[c]] before glyph[c]
author
kramm
<kramm>
Fri, 15 Oct 2004 09:46:25 +0000
(09:46 +0000)
committer
kramm
<kramm>
Fri, 15 Oct 2004 09:46:25 +0000
(09:46 +0000)
in getCharID().
pdf2swf/swfoutput.cc
patch
|
blob
|
history
diff --git
a/pdf2swf/swfoutput.cc
b/pdf2swf/swfoutput.cc
index
5d1c10f
..
25fa510
100644
(file)
--- a/
pdf2swf/swfoutput.cc
+++ b/
pdf2swf/swfoutput.cc
@@
-1167,11
+1167,6
@@
int getCharID(SWFFONT *font, int charnr, char *charname, int u)
}
}
}
}
- if(charnr>=0 && charnr<font->numchars) {
- msg("<debug> Char [>%d<,%s,%d] maps to %d\n", charnr, charname, u, charnr);
- return charnr;
- }
-
if(font->encoding != FONT_ENCODING_UNICODE) {
/* the following only works if the font encoding
is US-ASCII based. It's needed for fonts which return broken unicode
if(font->encoding != FONT_ENCODING_UNICODE) {
/* the following only works if the font encoding
is US-ASCII based. It's needed for fonts which return broken unicode
@@
-1180,8
+1175,13
@@
int getCharID(SWFFONT *font, int charnr, char *charname, int u)
msg("<debug> Char [>%d<,%s,%d] maps to %d\n", charnr, charname, u, font->ascii2glyph[charnr]);
return font->ascii2glyph[charnr];
}
msg("<debug> Char [>%d<,%s,%d] maps to %d\n", charnr, charname, u, font->ascii2glyph[charnr]);
return font->ascii2glyph[charnr];
}
+ }
+
+ if(charnr>=0 && charnr<font->numchars) {
+ msg("<debug> Char [>%d<,%s,%d] maps to %d\n", charnr, charname, u, charnr);
+ return charnr;
}
}
-
+
return -1;
}
return -1;
}