Font importer?

Is there a way to change the font importer in Unity?

I want outlined fonts that don’t require adding the outline manually on the texture. I tried to code a shader to do it from the texture, but I would need to be able to change the texture’s position in the shader (can I? I saw that you can apply a matrix to them, but I have no idea where the matrix should come from, or if it applies to the texture position)

It can’t be done with a shader (I think), I would rather not muck around in Photoshop (because I don’t know what style I want to use yet, so I’d like to be able to try a couple, without editing a couple of textures), so the last thing to try is the importer, but I suspect that a new importer would require an update to Unity…

Hi Gutterpunk,

I answered your other question and suggested you used Photoshop - I had not seen this similar post. :frowning:

Something that you could consider doing is create a render texture and render the whole font texture onto this render texture using DrawTexture I guess. You can offset the texture by changing the coordinates of the rect you are texturing. I have no idea how many passes you’d make or how you’d remove the centre of each character but I guess a simple shader can do this. You could create this replacement font texture each time the game starts up and swap out the texture that your font uses.

Note: I have never tried to do this. :slight_smile:

Regards,
Graham