X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2Fttf2pt1%2Fttf.c;h=b8db0e89b2c8746c8595ff0b78466d89b6f390b0;hb=50760be540fa6802296d7cb6eafa4d4b82a47a3b;hp=23dcb43efb8a653e8d39c34930dddebed89f17d5;hpb=a99083c972c3464b16cb2d488f7e8b2519c48c41;p=swftools.git diff --git a/pdf2swf/ttf2pt1/ttf.c b/pdf2swf/ttf2pt1/ttf.c index 23dcb43..b8db0e8 100644 --- a/pdf2swf/ttf2pt1/ttf.c +++ b/pdf2swf/ttf2pt1/ttf.c @@ -21,7 +21,7 @@ # include # include #else -# include "win_missing.h" +# include "windows.h" #endif #include "ttf.h" @@ -397,10 +397,10 @@ draw_composite_glyf( } else if (flagbyte & WE_HAVE_A_TWO_BY_TWO) { matrix[0] = f2dot14(*sptr); sptr++; - matrix[1] = f2dot14(*sptr); - sptr++; matrix[2] = f2dot14(*sptr); sptr++; + matrix[1] = f2dot14(*sptr); + sptr++; matrix[3] = f2dot14(*sptr); sptr++; } else { @@ -1035,24 +1035,24 @@ glnames( } else if (n < 258 + n_ps_names) { glyph_list[i].name = ps_name_ptr[n - 258]; } else { - glyph_list[i].name = malloc(10); - sprintf(glyph_list[i].name, "_%d", n); + glyph_list[i].name = malloc(16); + sprintf(glyph_list[i].name, "_g_%d", i); WARNING_2 fprintf(stderr, - "**** Glyph No. %d has no postscript name, becomes %s ****\n", + "Glyph No. %d has no postscript name, becomes %s\n", i, glyph_list[i].name); } } /* Now fake postscript names for all those beyond the end of the table */ if (npost < ttf_nglyphs) { for (i=npost; iitalic_angle = (short) (ntohs(post_table->italicAngle.upper)) + ((short) ntohs(post_table->italicAngle.lower) / 65536.0); @@ -1395,14 +1395,15 @@ fnmetrics( fm->force_bold=0; for(i=0; !fm->force_bold && i= len || !islower(str[j+4])) ) { fm->force_bold=1; break;