Skip to content

Allow setting text alignment mode #64

Open
@ben-wes

Description

@ben-wes

currently, the text coordinate always is at the upper left of the text bounding box - obviously resulting in top-left aligned text.

For some use cases (especially when displaying numbers), right alignment would be a nice option to have.

For this, we could add a new alignment setting (similar to the way that colors are set) like set_text_align(mode). An open question here is whether the vertical alignment is also necessary or if left, center, right are enough.

Tcl/Tk uses compass directions for this (see https://www.tcl.tk/man/tcl8.4/TkCmd/options.htm#M-anchor): n, ne, e, se, s, sw, w, nw, center ... that would be an option as well, but not sure if needed and if that would easily be adaptable for purr data and plugdata?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions