Skip to content

Orientation: planning #2

Description

@easytarget

I want to add 'orientation' options;

This enables rotated text, and effects such as mirroring.

  • flip (bool) : mirror about the horizontal axis
    • simply manipulate the glyph before adding to character framebuffer
    • affects the vertical alignment operation for baseline, flips top and bottom
  • mirror (bool) : mirror about the vertical axis
    • reverse the character print order
    • manipulate the glyph before adding to character framebuffer
    • flip left and right horizontal alignment
  • twist (bool)
    • hardest
    • change the print direction
    • change the alignment operation (this could get complex)
    • manipulate the glyph before adding to character framebuffer (which needs x/y dimensions adjusted to suit)

Changes applied to the alignment by flipping and mirroring, plus the axis swap from twist need to affect be reflected in returns from the rect() method (but size should be unaffected? I need to think about whether width and height should be swapped when twist is applied?, humm...)

Activity

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions