Skip to content

Leading in RichTextFormat does nothing #12

@Aleshkev

Description

@Aleshkev

In a simple TextField, leading creates space between lines of text. RichTextField looks like it is ignoring that parameter completely. Example:

var simple = TextField(
    "Lorem Ipsum", TextFormat("Arial", 18, Color.Black, leading: 18))
  ..width = 80
  ..wordWrap = true
  ..x = 10;

var rich = RichTextField(
    "Lorem Ipsum", RichTextFormat("Arial", 18, Color.Black, leading: 18))
  ..width = 80
  ..wordWrap = true
  ..x = 110;
stage..addChild(simple)..addChild(rich);

bad-leading

I think this is the issue that led to solving the same problem in regular TextField: bp74/StageXL#33.

Isn't it a simple fix in RichTextField too? I would try to do something, but I just started learning Dart and StageXL and it wouldn't be very effective.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions