Thermodynamic formalism and dimension gaps