I have been observing a strange issue during the project I am currently working on.
All text always has a small bright outline.
This is especially visible during the pressed-state of this button because the background is darker. However this seems to happy everywhere even on non-button text.
Outline width is set to 0 (and not even white for that matter).
The issue is visible in the playcanvas editor too if you zoom in close enough.
I believe there is something broken with the way font atlasses are generated.
My repro case for this bug is interesting.
If you take the project sample for ui buttons: User Interface - Buttons | PlayCanvas Developer Site
Specifically this: PlayCanvas | HTML5 Game Engine
Fork that project, set the button text color to something mid-value grey-ish, select the font from the Font folder and press the “Process Font” button in the font import inspector.
Observe the bright border appearing.
Sometime between the creation of that sample and today this error has made it’s way into the engine?
I reported this a long time ago. In engine 2.0, using gamma 2.2 affects the UI text, overexposing it. This shouldn’t happen with the UI, or at least there should be an option to exclude specific text from the calculation, or to control the text blend type. Currently, I’ve had to program my own modifications to correct this, but I’m constantly struggling. I’ve never received a real solution.
I don’t understand what you mean by loading the texture? Are you referring to fonts, the atlas texture? Where is that configured in the editor?
The same problem that I reported many months ago is being reported now in this other post