The shape of bars in early-type barred galaxies