For atoms in the gas phase the principal effects are Doppler and pressure broadening.
The shape of lines in a nuclear magnetic resonance (NMR) spectrum is determined by the process of free induction decay.