From 9d29b25fe674ceacbdf4b7beaba2c0cc3405dbc6 Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Fri, 12 Mar 2010 16:51:26 -0800 Subject: [PATCH] minor bugfixes --- lib/pdf/InfoOutputDev.cc | 3 +-- lib/ruby/gfx.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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; -- 1.7.10.4