The Swiss star was ruled out of the tournaments in Rotterdam and Dubai after he went under the knife to repair a torn meniscus.
However, he is now back on the practice courts, and posted a special message to his fans on his website.
Federer wrote: “I would like to send out a heartfelt thank you for all your kind words after my injury and the surgery.
“It was an amazingly positive boost to receive all your cards, letters, presents and posts on the web. It really means a whole lot to me to feel your support in tough times.
“It is fantastic to be moving and working out again. We’re taking it one step at a time, but I’m already really looking forward to getting back onto the court with full energy.
“Thank you very much again, see you soon.”
MORE: The latest football news
MORE: The latest tennis news