Text always has small white outline

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.

Screenshot 2026-07-27 110451

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?

This seems to be unrelated to: https://forum.playcanvas.com/t/engine-v2-migration-causing-issues-with-text-ui/42418/31
Becase it currently is not solved for me in version 2.21.1

Is there something reasonable I can do to fix this problem?

2 Likes

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.

Here are my previous posts about this:

The text looks really bad in many cases.

As long as you load texture with sRGB (gamma) enabled, the rendering should work without any issues.

If that does not work, can you please create a simple repro for us to look at, we’re not aware of an issue like this.

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

This should be fixed in the latest engine release:

You should be able to see the changes in Editor, once it updates its engine version.

2 Likes