We present an algorithm to arbitrarily engineer the dispersion of photonic-crystal Fabry-Pérot resonators via the accurate design of chirped reflectors, opening avenues to exotic dispersion profiles, dispersive-wave engineering and near-zero-dispersion soliton microcombs.