Federer seemed to catch a break in the draw when he was put in the same half as fourth-seed David Ferrer and not seven-time tournament winner Rafael Nadal, the third seed.
He will start his 53rd grand slam tournament against 46th-ranked Frenchman Benoit Paire, and as second seed he cannot meet two-time defending champion Djokovic until the final.