Skip to content

Text on a path just outputs NaNs for the path points #108

Description

@mvujovic
  1. In PS, draw a path (e.g. a line).
  2. Select the type tool and click on the line when the cursor changes.
  3. Type some text.
  4. Generate Assets for the layer as SVG.

The SVG file will contain NaNs for the path points.

If you fix the NaN bug by changing instances of code like "points[0].anchor.horizontal" to "points[0].anchor.horizontal.value" in svgOMGeneratorText.js::_computeTextPath, the text isn't positioned correctly either. Often times, the text appears outside of the SVG bounds (visible if you open the SVG file in Illustrator). Also, the bounds of the SVG element match the bounds of the path, not the bounds of the text rendering, so text looks clipped.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions