Hello,
I am experiencing an issue with text rendering in Gio UI. When using
white text on a black background, the text appears clear and crisp.
However, black text on a white background appears washed out and is
not as clear. This issue impacts the readability and overall user
experience of the application.
Is there a specific setting or configuration that needs to be adjusted
to improve text rendering in such cases? Any help or guidance would be
appreciated.
Result: https://gyazo.com/15914f154884c43ef45bf44a637a04c2
Code: https://goplay.tools/snippet/6sE-72rjO8Z
System Information
Operating System: Fedora release 31 (Thirty One)
Gio UI Version: gioui.org v0.2.0
Go Version: go1.19.5
GPU: NVIDIA-SMI 455.38 Driver Version: 455.38 CUDA Version: 11.1
Regards,
Melitonas
> I am experiencing an issue with text rendering in Gio UI. When using> white text on a black background, the text appears clear and crisp.> However, black text on a white background appears washed out and is> not as clear. This issue impacts the readability and overall user> experience of the application.>> Is there a specific setting or configuration that needs to be adjusted> to improve text rendering in such cases? Any help or guidance would be> appreciated.
Right now there are no configuration options affecting the
rasterization of text. I think your problems are related to:
https://todo.sr.ht/~eliasnaur/gio/68https://todo.sr.ht/~eliasnaur/gio/70https://todo.sr.ht/~eliasnaur/gio/447
There's also an element of human perception at play here. We perceive
interactions between different colors very differently. Some of your
examples may actually be rendering at the same level of clarity, but
appear different due to how the boundaries between certain colors are
perceived.
Text rasterization is a deep subject, and it isn't always easy to find
the best path forward. Most of the techniques to improve clarity
sacrifice something else (the ability to animate smoothly, the ability
to easily transform text with affine transforms, etc...). These
problems are on my radar (I have text-heavy applications too), but I
personally won't be able to do much in this space in the short term.
If you're interested in helping out here, you're welcome to research
this space and propose a path forward. I know that's a disappointing
answer, but it's the reality of the resources available right now.
Cheers,
Chris
Thank you for taking the time to address my concerns. I look forward
to future updates on this issue.
On Mon, Sep 18, 2023 at 3:01 PM Chris Waldon
<christopher.waldon.dev@gmail.com> wrote:
>> > I am experiencing an issue with text rendering in Gio UI. When using> > white text on a black background, the text appears clear and crisp.> > However, black text on a white background appears washed out and is> > not as clear. This issue impacts the readability and overall user> > experience of the application.> >> > Is there a specific setting or configuration that needs to be adjusted> > to improve text rendering in such cases? Any help or guidance would be> > appreciated.>> Right now there are no configuration options affecting the> rasterization of text. I think your problems are related to:>> https://todo.sr.ht/~eliasnaur/gio/68> https://todo.sr.ht/~eliasnaur/gio/70> https://todo.sr.ht/~eliasnaur/gio/447>> There's also an element of human perception at play here. We perceive> interactions between different colors very differently. Some of your> examples may actually be rendering at the same level of clarity, but> appear different due to how the boundaries between certain colors are> perceived.>> Text rasterization is a deep subject, and it isn't always easy to find> the best path forward. Most of the techniques to improve clarity> sacrifice something else (the ability to animate smoothly, the ability> to easily transform text with affine transforms, etc...). These> problems are on my radar (I have text-heavy applications too), but I> personally won't be able to do much in this space in the short term.> If you're interested in helping out here, you're welcome to research> this space and propose a path forward. I know that's a disappointing> answer, but it's the reality of the resources available right now.>> Cheers,> Chris