Thanks! That'll help in finding the font upload. So when uploading to VRAM it uses X,Y coordinates rather than an exact pointer? That explains then why in the VRAM viewer it lists everything in x,y coords. I prob read this in those docs to but it didn't register. I'm more use to specifying an address then coordinates.
For UFO, I noticed that when looking in VRAM it already has the entire font in there. To use this, would it then extract it out from VRAM into RAM then use the above function to put it back in? Or is there a way to do a transfer from one location in VRAM to another that I should be looking for?
I didn't even think about the BIOS calls, is there a document that lists them? The long PSX doc here just as a TBA. Would the BIOS call be the jalr to V0 loaded with $8006AB2C? Thanks!
Edit :
Been playing around with Agemo's version of the PCSX debugger and was reading the debugger notes and saw that you can log the VRAM rights. From there I found exactly what I think I need :
05E7B8:2C - FT4 (260, 168)*(15, 15) clut(0, 500) TP(768, 256)(bit:0) UV<(772, 272)*(15, 15)>(16, 16)*(15, 15) RGB( 4, 42, 84)
The TP conforms to the font in VRAM and the UV is the coordinates of the letter. No idea what any of it means but hey

(Well, I recognize clut at least

)
Just to double check, would $5E7B8 be the code executing? I can't find it in a trace but I'd imagine that would be in a bios function right?
Edit 2:
Figure out that's the location in memory it's reading. Can't find it in a trace though so doesn't help me out so far...
Edit 3:
Last update

Turns out that I was logging the GPU stuff to early along with the ASM. Seems that I was logging it after it's first print, and due to how it shifts the color I was capturing that. So logging it a bit earlier I found the instance where it first captures the letter in to RAM (at least that's what I'm guessing it's doing which seems to be right

Tracing back from there I figured out the letters (which I was actually somewhat right on... turns out they were two byte anyways and I got the last half correct at least). Now just need to figure out the print routine as the letters aren't in order so it accesses something else to jump around the table.
Thanks for your help! And hopefully this helps someone else as well.