Skip to content

NerdFont glyphs get truncated.  #680

Closed

Description

@mvanderlee

Using wsltty 1.7.9 with mintty 2.7.9
This seems to be related to #638 but I seem to be missing something.

I've tried all SauceCodePro regular fonts All show up as small icons except for 'Sauce Code Pro Nerd Font Complete.ttf' which shows up as truncated, but the size I want.

I've tried tried executing:

$ cat
^[]77119;1^G   # Ctrl+[, ]77119;1, Ctrl+g

$ cat
^[]77119;2^G

but neither worked.

Activity

  1. mintty commented on Aug 20, 2017

    @mintty
    Owner

    Which characters do you try to display? OSC 77119 only affects specific ranges of Unicode characters, e.g. Indic, not any iconic or even private use characters.
    And what makes your case distinct from 638?

  2. mvanderlee commented on Aug 20, 2017

    @mvanderlee
    Author

    Characters in the private space.
    F113 for example.
    And it looks like 638 was solved, I can't figure out how though.

    I've also are playing with the source code and compiling my own version of mintty, with no success so far. I've added the private space to wide.t with no effect.
    I've ensured all private space characters get the attr ATTR_WIDE, but it's still clipped on the left side, and the first character after is hidden under the right side of the icon.

  3. mintty commented on Aug 20, 2017

    @mintty
    Owner

    638 was mostly about overhanging glyphs, for which support was added and released.
    Note that you cannot really expect particular rendering for private use characters.
    It would help though to have a precise symptom description, with exact output and screenshot.

  4. mvanderlee commented on Aug 21, 2017

    @mvanderlee
    Author

    Original:
    image

    After making all private space characters wide.
    term.c line:1179

    if (tchar >= 0xE000 && tchar < 0xF900) {
        // don't tamper with width of Private Use characters
        tattr.attr |= ATTR_WIDE;
    }
    

    image

  5. mintty commented on Aug 21, 2017

    @mintty
    Owner

    See #638 (comment),
    where I had offered a feature to support wide private use characters (with no feedback so far).
    The problem is, however, how to define which of the private use characters should be wide and which are narrow. Maybe you can contact the Nerdfonts project whether they have a concept on this.

  6. mvanderlee commented on Aug 21, 2017

    @mvanderlee
    Author

    Would it be possible to add a config property where we enter data using the same syntax as wide.t?
    Then we could enter that in the .minttyrc or config file.

    In the second screenshot I had already added { 0xE5FA, 0xF900 }, to wide.t but didn't seem to have any effect.

  7. mvanderlee commented on Aug 21, 2017

    @mvanderlee
    Author

    At the least I'd expect the glyphs to start being rendered at x=0 instead of have the left side truncated.
    If there is overhang on the right side I don't mind too much as I'd separate the right side with a space anyway.

    Gnome-terminal on CentOS 7
    image

  8. ryanoasis commented on Aug 23, 2017

    @ryanoasis

    @ddutch Yeah I think the terminal emulator is treating the ambiguous width characters as 'narrow'. In gnome terminal we can change it to 'wide'. Well it's at least an option ¯_(ツ)_/¯

  9. mintty commented on Aug 23, 2017

    @mintty
    Owner

    The private use range is in fact marked "Ambiguous width" (just checked; does not apply to non-BMP private use characters).
    Mintty has the capability to handle ambiguous-width characters as wide, following the Cygwin concept for that matter, see https://github.com/mintty/mintty/wiki/Tips#ambiguous-width-setting

  10. mintty commented on Oct 23, 2017

    @mintty
    Owner

    Released 2.8.0.

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