Skip to content

Weird triangulation on Text rendered with OpenGL #4483

@GuiCT

Description

@GuiCT

I made a mistake when creating the issue and did not follow the template on the first post. I updated the info #4483 (comment) later.


When i render the Title component with Cairo, i have no problems. However, while trying to replicate the same text in OpenGL, i get some weird text, more specifically, the letter 'O'.

First printscreen: preview quality, fill_opacity=1.0:

Image

Looking closely, it is possible to see that the 'O' character in OpenGL has some weird edges along the top.

I figured maybe the quality was what was causing it, so here is the same behavior with 4K quality:

Image

To make what i am trying to say more explicit, the edges are highlited when i set fill_opacity=0.25:

Image

I am investigating this to try and find the cause. I don't know if this is a specific of my install (in a previous PR, a mismatch on the mapbox_earcut caused a bug on my PC) or maybe something related on how OpenGL is implemented for text rendering (had no problems with other components).

I would very much appreciate anyone who has any input on this

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions