Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text drop shadows or background #18

Open
dann1 opened this issue Jul 25, 2023 · 2 comments
Open

Text drop shadows or background #18

dann1 opened this issue Jul 25, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@dann1
Copy link

dann1 commented Jul 25, 2023

It would be nice to have drop shadows or text specific background for easier readability. At the moment, the text can be harder to read depending on the game world light level/texture.

@ceejbot ceejbot added the enhancement New feature or request label Jul 25, 2023
@ceejbot
Copy link
Owner

ceejbot commented Jul 25, 2023

Backdrops can help here, but for layouts without them, optional text drops shadows would indeed be handy. There's an open PR to imgui to add drop shadow support for text rendering, but it looks a bit dusty. Hmm.

@dann1 dann1 changed the title Better readability Text drop shadows or background Aug 6, 2023
@ceejbot
Copy link
Owner

ceejbot commented Dec 7, 2023

I should note here that a month ago or so I looked into what would be required to add this feature, given that imgui does NOT support it in their api. The basic approach in the unmerged PR linked above is to build a second set of font billboards, blurred out. You would then render text twice: once with the unblurred billboards, then again, offset, with the blurred billboards. I will do this after I knock off the more important features and hit 1.0.

Imgui's text rendering is not great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants