X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fdevices%2Fpdf.c;h=9e6365b2d5cd67d89977a8d6111eb46cd0d71b3f;hp=ef67d496fb09225f65c810eb872c68c5d7f0a44e;hb=2391d7ae5d8a145a250a8b80ab8c93ba74eba030;hpb=0b38eabf882d8bdcd0e92995e8a2478db9cb5ed8 diff --git a/lib/devices/pdf.c b/lib/devices/pdf.c index ef67d49..9e6365b 100644 --- a/lib/devices/pdf.c +++ b/lib/devices/pdf.c @@ -33,6 +33,7 @@ #include "../mem.h" #include "../gfxdevice.h" #include "../gfxtools.h" +#include "../gfximage.h" typedef struct _internal { PDF* p; @@ -234,7 +235,7 @@ void pdf_drawchar(gfxdevice_t*dev, gfxfont_t*font, int glyphnr, gfxcolor_t*color int fontid = (int)(ptroff_t)gfxfontlist_getuserdata(i->fontlist, font->id); PDF_setfont(i->p, fontid, matrix->m00); char name[32]; - sprintf(name, "%c\0", glyphnr+32); + sprintf(name, "%c", glyphnr+32); if(fabs(matrix->tx - i->lastx) > 0.001 || matrix->ty != i->lasty) { PDF_show_xy2(i->p, name, strlen(name), matrix->tx, matrix->ty);