8000 Text justification · Issue #7 · jarcane/minicosm · GitHub
[go: up one dir, main page]

Skip to content

Text justification #7

Open
Open

Description

@jarcane

Add support for text justification property to the :text element.

Proposal:

  • new property on :text element: :dir - Contains one of options: :left, :center, :right, :start, :end.
  • implementation: preserve existing ctx.textAlign property, set to the value specified by :dir if present (name function will probably help here), restore original property when element is done drawing. This is similar to how :color/:font are applied.
  • challenges: None expected.
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0