I am sorry, but I have no idea, what you are asking. It's something about fonts, ok.
X11 will do part of the work displaying them, if you want it to. Seemingly you don't. But that shouldn't change the type of font you need.
I'm not quite sure, what the problem about PHP should be - unless you don't mean
the scripting language. If the font is installed, it should be possible to use it locally, I would guess. I don't really know PHP though, so there might be some hidden problems I just don't see.
If you do mean the PHP I think, a simple
<font face="Font Name">...</font> should probably do the trick, if your program creates HTML code (as I guess it does).
Then there's something about printing - that shouldn't be a problem, as long as the program you use for printing can use the font.
You say, you installed freetype2. So, basically it should work.
If I completely misinterpreted your question, please correct me. In that case, please try explaining again, what exactly you are trying to do.
Greetings,
Nepomuk