Commit 31b28b4c authored by Kristian Høgsberg's avatar Kristian Høgsberg

2005-12-03 Kristian Høgsberg <krh@redhat.com>

        * glib/poppler-page.cc (poppler_page_set_selection_alpha): Use
        Nickolays original fix instead of trying to be clever with
        gdk_pixbuf_fill().

        * poppler/CairoFontEngine.cc: Fix text corruption bug (#5149),
        a rerun of an old classic (#3340).
parent 4d169c5c
2005-12-03 Kristian Høgsberg <krh@redhat.com>
* glib/poppler-page.cc (poppler_page_set_selection_alpha): Use
Nickolays original fix instead of trying to be clever with
gdk_pixbuf_fill().
* poppler/CairoFontEngine.cc: Fix text corruption bug (#5149),
a rerun of an old classic (#3340).
* poppler/GfxState.cc: Fixing another problem with new GfxRGB
representation causing images to show up as random pixels (#5117).
......
......@@ -404,7 +404,13 @@ poppler_page_set_selection_alpha (PopplerPage *page,
if (pixbuf_n_channels != 4)
return;
gdk_pixbuf_fill(pixbuf, 0);
for (y = 0; y < height; y++) {
dst = pixbuf_data + y * pixbuf_rowstride;
for (x = 0; x < width; x++) {
dst[3] = 0x00;
dst += pixbuf_n_channels;
}
}
region = poppler_page_get_selection_region (page, scale, selection);
......
......@@ -162,6 +162,7 @@ CairoFont::CairoFont(GfxFont *gfxFont, XRef *xref, FT_Library lib, GBool useCIDs
codeToGID = NULL;
codeToGIDLen = 0;
#if HAVE_FREETYPE_217_OR_OLDER
if (useCIDs)
{
if ((ff1c = FoFiType1C::load(fileName->getCString()))) {
......@@ -169,6 +170,7 @@ CairoFont::CairoFont(GfxFont *gfxFont, XRef *xref, FT_Library lib, GBool useCIDs
delete ff1c;
}
}
#endif
if (FT_New_Face(lib, fileName->getCString(), 0, &face)) {
gfree(codeToGID);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment