X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fgfxdevice.h;h=2e508bf6b92bf8bd60ec1397f143b9ead2697650;hb=b5a996ee217aea486eb78860fe7bab2b522f9678;hp=0d9a99460d832dec36508c60694793eb7e228c21;hpb=3ca63a765deda9737dbbf336322daf7a9a551ba8;p=swftools.git diff --git a/lib/gfxdevice.h b/lib/gfxdevice.h index 0d9a994..2e508bf 100644 --- a/lib/gfxdevice.h +++ b/lib/gfxdevice.h @@ -35,6 +35,9 @@ typedef struct _gfxfont const char*id; int num_glyphs; int max_unicode; + + double ascent,descent; + gfxglyph_t*glyphs; int* unicode2glyph; } gfxfont_t; @@ -111,7 +114,7 @@ typedef struct _gfxdevice void (*fillbitmap)(struct _gfxdevice*dev, gfxline_t*line, gfximage_t*img, gfxmatrix_t*imgcoord2devcoord, gfxcxform_t*cxform); //cxform? tiling? void (*fillgradient)(struct _gfxdevice*dev, gfxline_t*line, gfxgradient_t*gradient, gfxgradienttype_t type, gfxmatrix_t*gradcoord2devcoord); //? - /* deprecated */ void (*addfont)(struct _gfxdevice*dev, gfxfont_t*font); + void (*addfont)(struct _gfxdevice*dev, gfxfont_t*font); void (*drawchar)(struct _gfxdevice*dev, gfxfont_t*font, int glyph, gfxcolor_t*color, gfxmatrix_t*matrix); @@ -119,6 +122,8 @@ typedef struct _gfxdevice void (*endpage)(struct _gfxdevice*dev); + const char* (*geterror)(); + gfxresult_t* (*finish)(struct _gfxdevice*dev); void* internal;