minor bugfixes
authorMatthias Kramm <kramm@quiss.org>
Sat, 13 Mar 2010 00:51:26 +0000 (16:51 -0800)
committerMatthias Kramm <kramm@quiss.org>
Sat, 13 Mar 2010 00:51:26 +0000 (16:51 -0800)
lib/pdf/InfoOutputDev.cc
lib/ruby/gfx.c

index 214814f..e0fc2e3 100644 (file)
@@ -227,8 +227,6 @@ static gfxfont_t* createGfxFont(FontInfo*src)
        }
     }
 
-    gfxfont_fix_unicode(font);
-
     int kerning_size = 0;
     for(t=0;t<src->num_glyphs;t++) {
        dict_t* d = src->kerning[t];
@@ -290,6 +288,7 @@ gfxfont_t* FontInfo::getGfxFont()
            this->space_char = addSpace(this->gfxfont);
            msg("<debug> 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;
 }
index 874b8bc..3a5f60c 100644 (file)
@@ -234,7 +234,7 @@ static VALUE image_has_alpha(VALUE cls)
     gfxcolor_t*data = image->image->data;
     int t;
     for(t=0;t<size;t++) {
-       if(data->a!=255) 
+       if(data[t].a!=255) 
            return Qtrue;
     }
     return Qfalse;