Text this: A Study on the Line of Sight to Galaxies Detected at Gamma-Ray Energies