Skip to content

Lay text out along a path #4446

Done

Description

@yuto-trd

Summary

Let a TextBlock lay its characters along a path.

Today

TextBlock lays text out horizontally or vertically only. PathFollowEffect moves a whole drawable along a path, but cannot place each character on it.

Proposed design

  • A Path property (Geometry?) on TextBlock, plus PathOffset (where the text starts along the path, animatable) and Perpendicular (rotate each character to the path's direction).
  • Place each glyph's baseline center at its advance along the path with SKPathMeasure, rotated to the tangent.
  • The path can be edited in the existing path editor tab.

Open questions

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