Skip to content

Text decoration limitations (skia) #416

@softmarshmallow

Description

@softmarshmallow

There are limitations with text rendering, mostly with its extended usage.
We basically have to build our own, to fully support major text-related css properties.

This issue contains the list of problems found. feel free to add more comments around it.

  • text-decoration-color limitation.
    • does not support other then fixed color (gradients, images, etc.)
  • multiple decorations are not supported
    • underline with line trhrough
  • text-decoration-thickness limitations
    • style=dotted/wavy/dashed should scale both in xy no only y. - skia only scales in y.
  • paint(s) limitation
    • the gradient requires to be passed with distinct size, where size is measured after the layout(), which means we have to rely on canvas.draw_glyphs_at, which drops the native decoration support

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions