The distortion of weakfronts by mesoscale orography