From: Matthias Kramm Date: Sat, 13 Mar 2010 00:51:26 +0000 (-0800) Subject: minor bugfixes X-Git-Tag: version-0-9-1~92 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;ds=inline;h=9d29b25fe674ceacbdf4b7beaba2c0cc3405dbc6;p=swftools.git minor bugfixes --- diff --git a/lib/pdf/InfoOutputDev.cc b/lib/pdf/InfoOutputDev.cc index 214814f..e0fc2e3 100644 --- a/lib/pdf/InfoOutputDev.cc +++ b/lib/pdf/InfoOutputDev.cc @@ -227,8 +227,6 @@ static gfxfont_t* createGfxFont(FontInfo*src) } } - gfxfont_fix_unicode(font); - int kerning_size = 0; for(t=0;tnum_glyphs;t++) { dict_t* d = src->kerning[t]; @@ -290,6 +288,7 @@ gfxfont_t* FontInfo::getGfxFont() this->space_char = addSpace(this->gfxfont); msg(" Appending space char to font %s, position %d, width %f", this->gfxfont->id, this->space_char, this->gfxfont->glyphs[this->space_char].advance); } + gfxfont_fix_unicode(this->gfxfont); } return this->gfxfont; } diff --git a/lib/ruby/gfx.c b/lib/ruby/gfx.c index 874b8bc..3a5f60c 100644 --- a/lib/ruby/gfx.c +++ b/lib/ruby/gfx.c @@ -234,7 +234,7 @@ static VALUE image_has_alpha(VALUE cls) gfxcolor_t*data = image->image->data; int t; for(t=0;ta!=255) + if(data[t].a!=255) return Qtrue; } return Qfalse;