Spectroscopy of the solar photosphere with high spatial resolution