We measured the Doppler broadening of annihilation radiation (DBAR) spectra of (Fe, Co, and Ni) and (Gd, Tb, and Dy) ferromagnets under a magnetic field by using spin-polarized positrons from a Ge-Ga source. The results showed that the DBAR spectra of these metals have notably different magnetic-field dependences. The differences among Fe, Co, and Ni reflect that the upper minority spin bands of Fe and Co are nearly empty while those of Ni are still mostly occupied. For the rare-earth metals instead of the inner electrons, electrons that mediate the exchange interaction of the electrons are primarily responsible for the magnetic-field effects on the DBAR spectra. Furthermore, the magnetic-field effects on the DBAR spectra of Gd, Tb, and Dy vanished above the Curie temperatures of the magnetic-phase transition for these metals.