Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leading in RichTextFormat does nothing #12

Open
Aleshkev opened this issue Dec 31, 2019 · 0 comments
Open

Leading in RichTextFormat does nothing #12

Aleshkev opened this issue Dec 31, 2019 · 0 comments

Comments

@Aleshkev
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant