question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Text exports one character per <text> element

See original GitHub issue

First off, just wanted to say this is groundbreaking stuff and you’re a genius. So thank you for creating this library. Now, on to my issue…

When exporting via bodymovin after having disabled the glyphs option, each character of text is wrapped in its own <text> element, e.g. the word “the” would output like this:

<text>t</text>
<text>h</text>
<text>e</text>

Is there a reason for this or a way to force text to not be wrapped in such a way? It makes manipulating the generated SVG much more problematic. I would prefer it spits out whole lines at a time and only performs transform-style positioning on those blocks of text where necessary.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11

github_iconTop GitHub Comments

2reactions
bodymovincommented, Nov 6, 2017

Added a single text element with tSpans if layer doesn’t use animators.

2reactions
bodymovincommented, Oct 7, 2017

The reason for this is text animators and tracking, indeed. I’ve tried using tspans wrapped around each character but I haven’t found a good way for animating them. I’ll try to see if I can use a single text element if the layer has no animators. Regarding SEO and accessibility, I’m also looking for a way to support them on every situation. Suggestions are welcome 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Export data to a text file - Microsoft Support
Learn how to export Access objects and data to text files. ... on its own line, and the fields are separated by a...
Read more >
Exporting new line characters to text in Postgres
1 Answer 1 · I need to export the contents of this field to a text file, not a CSV. · Then COPY...
Read more >
Export character limit per field - Oracle B2C Service
1. Open the report in edit mode 2. Right click on the column you wish to extend the text limit for. 3. Select...
Read more >
JasperReports - Text Export Sample (version 6.20.0)
Text elements are converted into simple texts to be written in documents with predefined page widths and heights, measured in characters.
Read more >
Segments and Encodings - Spoke Rewired Knowledge Base
A segment is a component of a larger overall text message. ... An SMS message under 160 characters will often be one segment, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found