Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Special variable-width characters break cursor position #132

Closed

Description

@cobyism

So @nathansobo and I talked about something similar the other night, but I wanted to highlight a specific problem I ran into the other day, because it may be something that we need to factor into the app a little more to specifically guard against this type of issue.

Here is a character that isn’t fixed width:
Screen Shot 2013-01-13 at 12 17 54 PM

Highlighting it shows it breaking out of the character square:
Screen Shot 2013-01-13 at 12 18 03 PM

It basically throws out all caret positions to the right of the character in question:

Screen Shot 2013-01-13 at 12 18 11 PM

Not sure what the best solution is here, but yeah. Happy to brainstorm solutions 😄

Activity

  1. nathansobo commented on Jan 22, 2013

    @nathansobo
    Contributor

    Yeah... seems like even in a fixed-width font, you can run into "special" situations. Are there better fonts, like Adobe's Source Code that do a better job with this? If we can't rely on fixed width fonts being truly fixed-width, then we're going to need to deal with this sooner rather than later.

    Right now we just multiply columns times a measured "character width". If different characters are different widths, then we'll need to keep a cache of how wide a given character is at a given font size, and actually measure it for unknown characters.

  2. jonrohan commented on Feb 2, 2013

    @jonrohan
    Contributor

    There's more info on this here #225

  3. lock commented on Jan 28, 2019

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  4. locked as resolved and limited conversation to collaborators on Jan 28, 2019
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions