Skip to content

Text background paint has light line on top ,and miss some Chinese word #24335

@zmtzawqlp

Description

@zmtzawqlp

Steps to Reproduce

issue1

when background is an opacity color,a line will show at top.

var color = Color(0xfffe7801);
 var colorb = color.withOpacity(0.1);

    Paint paint=new Paint();
    paint.color = colorb;
   var ts = Text(
        "  悬赏 ¥ " +"ddddddddddddd" + "  ",
        style: TextStyle(color: color, background: paint, fontSize: 13.0,));

issue2

when background is an opacity 1.0 color, the Chinese words is missing.

var color=Colors.black;
    var colorb=Colors.green;
    Paint paint=new Paint();
    paint.color = colorb;
   var ts = Text(
        "  悬赏 ¥ " +"ddddddddddddd" + "  ",
        style: TextStyle(color: color, background: paint, fontSize: 13.0,));

Metadata

Metadata

Assignees

Labels

a: typographyText rendering, possibly libtxtengineflutter/engine repository. See also e: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions