The tournament, despite his loss in the final, represented an upturn in fortunes for Roger Federer.