Fractals, Multifractals, and Thermodynamics