The lettering and lining is most usually NOT sprayed onto the surface (the only times it is usually sprayed is if it is being done 'on the cheap' and only for a limited lifespan, or for temporary markings).
Mostly these are done with a 'paint' which is a coloured bituminous or plasticised material which is heated up in a big vessel then dispensed into an applicator in a metered quantity.
(You might have see these on the back of a 'roadworks' flatbed vehicle, with a burner underneath them and an opening slot on the side showing signs of, er, 'drippage'... )
The 'paint' then has to be worked within a few seconds as it hardens rapidly and when it hits the surface of the cold tarmac almost instantaneously.
If you inspect the lettering, or indeed the 'yellow lines' at the side of the road, you will see it has the appearance of being layered on, much like icing having been smoothed off, and is a few millimetres thick