Change font material without extra atlas

Hi!

Say I have two font materials that only differ in their tags (so that I can render them at different points in the render script). Does this situation bundle the font’s atlas texture twice? And if I load both fonts, would I have two identical textures in memory?

I’m uncertain here and look forward to being corrected by @sven, but if I’m not mistaken it’s the .font file that will result in an “atlas” for the font. It doesn’t matter if you have different materials.

Yeah, but the material reference is included inside the .font file (at least for gui rendering). For labels the material is set per-label. I’d love to be able to change the material the font is rendered with on a per-gui-scene basis.

2 Likes