X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2Fswfoutput.cc;h=b4c1229fb72b06b20cb54b61353d35cbab8853b5;hb=fe997bf80a882818506b54da45d2bb6f85098e06;hp=3511eee721e81d4faeb73a0aac7d2d0ba8d12e9e;hpb=e52974a544099e9497126e51d3f7943270d21199;p=swftools.git diff --git a/pdf2swf/swfoutput.cc b/pdf2swf/swfoutput.cc index 3511eee..b4c1229 100644 --- a/pdf2swf/swfoutput.cc +++ b/pdf2swf/swfoutput.cc @@ -1144,6 +1144,7 @@ int getCharID(SWFFONT *font, int charnr, char *charname, int u) if(charname) { for(t=0;tnumchars;t++) { if(font->glyphnames[t] && !strcmp(font->glyphnames[t],charname)) { + msg(" Char [%d,>%s<,%d] maps to %d\n", charnr, charname, u, t); return t; } } @@ -1151,6 +1152,7 @@ int getCharID(SWFFONT *font, int charnr, char *charname, int u) we can find the capitalized version */ for(t=0;tnumchars;t++) { if(font->glyphnames[t] && !strcasecmp(font->glyphnames[t],charname)) { + msg(" Char [%d,>>%s<<,%d] maps to %d\n", charnr, charname, u, t); return t; } } @@ -1159,11 +1161,13 @@ int getCharID(SWFFONT *font, int charnr, char *charname, int u) if(u>0) { /* try to use the unicode id */ if(u>=0 && umaxascii && font->ascii2glyph[u]>=0) { + msg(" Char [%d,%s,>%d<] maps to %d\n", charnr, charname, u, font->ascii2glyph[u]); return font->ascii2glyph[u]; } } if(charnr>=0 && charnrnumchars) { + msg(" Char [>%d<,%s,%d] maps to %d\n", charnr, charname, u, charnr); return charnr; } @@ -1172,6 +1176,7 @@ int getCharID(SWFFONT *font, int charnr, char *charname, int u) is US-ASCII based. It's needed for fonts which return broken unicode indices */ if(charnr>=0 && charnrmaxascii && font->ascii2glyph[charnr]>=0) { + msg(" Char [>%d<,%s,%d] maps to %d\n", charnr, charname, u, font->ascii2glyph[charnr]); return font->ascii2glyph[charnr]; } }