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

Make line breaks optional for TextPath #1177

Open
loudenvier opened this issue Feb 21, 2023 · 0 comments · May be fixed by #1178
Open

Make line breaks optional for TextPath #1177

loudenvier opened this issue Feb 21, 2023 · 0 comments · May be fixed by #1178

Comments

@loudenvier
Copy link

loudenvier commented Feb 21, 2023

Currently TextPath includes an unconditional line break after rendering:

public IEnumerable<Segment> Render(RenderOptions options, int maxWidth)
    ...

   // Insert a line break
    parts.Add(Segment.LineBreak);

    return parts;
}

It would be nice if this line break could be made optional. This will allow us to write addition text after the rendered "path".

My current use case for this is inside an image resizing app: I output the filename (using TextPath) before resizing it, and after processing I output the time taken. Using TextPath it's always outputted in a new line, while, ideally it should be outputted in the same line the path was rendered.


Please upvote 👍 this issue if you are interested in it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo 🕑
Development

Successfully merging a pull request may close this issue.

1 participant