if (gnome_pgl_bbox (hacktext->priv->pgl, &gbbox)) {
ArtIRect ibox;
art_drect_to_irect (&ibox, &gbbox);
+
+ /* hack: bounding box seems to be underestimated.
+ * It may be doesn't take into account antialiasing*/
+
+ ibox.x0--;
+ ibox.y0--;
+ ibox.x1++;
+ ibox.y1++;
+
gnome_canvas_request_redraw (hacktext->item.canvas, ibox.x0, ibox.y0, ibox.x1, ibox.y1);
if (bbox) art_irect_union (bbox, bbox, &ibox);
}
y_offset =
bchar->fsize - gnome_font_get_descender (font);
item = gl_view_object_item_new (GL_VIEW_OBJECT(view_barcode),
- gnome_canvas_hacktext_get_type (),
+ gl_canvas_hacktext_get_type (),
"x", bchar->x,
"y", bchar->y + y_offset,
"glyphlist", glyphlist,