Skip to content

Foreign characters may cause misalignment in UI #10

@danielpclark

Description

@danielpclark

When other locales are added it's important to note that not all ascii characters are the same width. Japanese characters have double width in most (maybe all) cases which will cause the right aligned text to be off by that extra amount. Figure a way to calculate actual character width for alignment.

Create tests with the new alignment logic by demonstrating a string with a word of characters that use more than the standard width and test that the alignment should be with the methods output of that word. So for a given character display width for the output be able to align and provide balance between left, center, and right without exceeding the display width from unusually sized characters.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions