use cairo image surfaces, not GdkPixmap, when computing text sizes for port matrix...