What does T (or is it Tee?) mean as in, "It fits him to a T"?

I asked in Words and Wordplay and nobody knew. So that makes it a free-for-all right?
4 answers