The calculated distance (air line) between Rabat and Fontana is approximately 14 miles respectively 23 kilometers.
By car or train, the actual journey to Fontana is certainly longer, as only the direct route (as the crow flies) between Rabat and Fontana has been calculated here.