It is presented a consistent relativistic theory of spectra of the pionic atoms on the basis of the Klein-GordonFock with a generalized radiation and strong pion-nuclear potentials. There are presented data of calculation of the energy and spectral parameters for pioninc neon, cesium, holmium, thulium, ytterbium, lutetium, thallium, lead, and others, including the calculation of energy shifts, the widths of the levels due to the strong interaction with accounting for the the radiation (vacuum polarization), nuclear (finite size of a nucleus ) and other corrections.