Metric and fractal geometry