International audienceContext. Angular momentum (AM) transport models of stellar interiors require improvements to explain the strong extraction of AM from stellar cores that is observed with asteroseismology. One of the frequently invoked mediators of AM transport are internal magnetic fields, even though their properties, observational signatures, and influence on stellar evolution are largely unknown.Aims. We study how a fossil, axisymmetric internal magnetic field affects period spacing patterns of dipolar gravity mode oscillations in main sequence stars with masses of 1.3, 2.0, and 3.0 M⊙. We assess the influence of fundamental stellar parameters on the magnitude of pulsation mode frequency shifts.Methods. We computed dipolar gravity m...