Spectra of white dwarfs