Moving texture in GUI font shader

I tried to change the GUI font shader to generate outlined fonts.

I want to draw the letter texture 8 times in a solid color (at {-1, -1}, {0, -1}, {1, -1)… etc), blank the center and then draw the letter in the font color (to allow for alpha blended lettering)

I think that I understand the passes, and I have read the docs quite more than I should have.

Is there a way to move the texture before blending it? I saw something about matrices, but I am not sure if they relate to position or anything. Also, I see that you have to set the matrix values in a separate script, would that work with fonts (who seem to be “shadered” before the scripts are running)

Hi Gutterpunk,

I am afraid I can’t answer your question, but if I wanted an outlined font in Unity I think I’d create a custom font and provide my own texture map containing the outlined characters.

(Create a texture with the characters laid out on a 16x16 grid, load it in as a texture, then create a custom texture and set the material to be the texture you just loaded.)

Thanks,
Graham