Skip to content

1.602 - Backticks render wrongly #53

Closed

Description

@bebraw

I encountered a problem with your font! When I'm using Backticks (`), there is a display error (I'm using the latest available version). I have attached the evidence below, I also tested this anomaly on your site, and it behaves on you as well.

image-1
image-2

Activity

  1. bebraw commented on Jan 27, 2021

    @bebraw
    ContributorAuthor

    Based on the user report it's on MacOS but I cannot reproduce this one on my system (Big Sur). Please comment here if you can reproduce it.

  2. petrisoralexandru commented on Jan 27, 2021

    @petrisoralexandru

    Hi, I'm the one who reported this. The problem is tested on the operating systems: macOS High Sierra & Windows 10 as well as on your website (Playground).

    I have attached some more animated images.
    Proof1
    Proof2

    Backticks (`) work correctly in italics. In the below photos, you can see it's a big difference in the glyph (left one is Regulat Italic, right one is just Regular).
    image

  3. bebraw commented on Jan 27, 2021

    @bebraw
    ContributorAuthor

    @MarcusSterz Is it possible there's some automatic replacement causing this? Can you reproduce the issue?

  4. bebraw commented on Jan 27, 2021

    @bebraw
    ContributorAuthor
  5. petrisoralexandru commented on Jan 27, 2021

    @petrisoralexandru

    Sure!

    Proof3

  6. pkazmier commented on Jan 28, 2021

    @pkazmier

    For another data point, I'm on a Mac (Catalina) and backticks work as expected in both playground and my editor (emacs 28). No issues for this Mac user.

  7. petrisoralexandru commented on Jan 28, 2021

    @petrisoralexandru

    I don't know, I think this is on a system level. I tested it on my Android phone and my laptop (Windows & Ubuntu) and the playground works well, but the same issue in VS Code.

  8. MarcusSterz commented on Jan 28, 2021

    @MarcusSterz

    Cannot reproduce this in playground in any browser so far. Looks good in VS Code, too.

  9. petrisoralexandru commented on Jan 28, 2021

    @petrisoralexandru

    Maybe is from keyboard?

    microsoft/vscode#93567 (comment)

  10. petrisoralexandru commented on Jan 28, 2021

    @petrisoralexandru

    @bebraw What replacement on the system level do you recommend?

  11. bebraw commented on Jan 28, 2021

    @bebraw
    ContributorAuthor

    @petrisoralexandru You could try https://stackoverflow.com/a/12759063/228885 . I wonder if this is related to input source.

    If I'm interpreting right, it's doing a replacement for the diacritic character ù on your system. I don't understand why this doesn't happen for the other font families, though.

  12. petrisoralexandru commented on Jan 28, 2021

    @petrisoralexandru
  13. bebraw commented on Jan 28, 2021

    @bebraw
    ContributorAuthor

    @petrisoralexandru https://superuser.com/questions/1236768/how-do-i-disable-automatic-diacritics seems related for Windows. It looks like there may be some automation in place as well that's causing the behavior.

  14. 22 remaining items

  15. reopened this on Aug 11, 2022
  16. kkirsche commented on Aug 11, 2022

    @kkirsche

    I think that's fine but the way it's modified is coming from the issue tracker, which while a user-provided solution is still a likely course of action for many users given NERD icons were an early request in #57

  17. bebraw commented on Aug 11, 2022

    @bebraw
    ContributorAuthor

    @kkirsche Yup, what I mean is that it's not completely clear if we can find a fix for modifications done on top of the shipped version as it's difficult to tell what the tool is doing and why it would break this particular case. It's possible there's something wrong in the base font still.

  18. krish-r commented on Aug 17, 2022

    @krish-r

    Hello, there's already an open issue and a PR with a fix in the nerd fonts repository for this backtick issue.

    Until it gets merged, you can self-patch the font from the command-line using the options suggested in this comment (& by following the instructions in this comment).

  19. krish-r commented on Aug 19, 2022

    @krish-r

    Hello, there's already an open issue and a PR with a fix in the nerd fonts repository for this backtick issue.

    Until it gets merged, you can self-patch the font from the command-line using the options suggested in this comment (& by following the instructions in this comment).

    Its merged now. You can now patch the font using -

    • the command-line approach mentioned in my previous reply until their next release (v2.2.0)
      (or)
    • their latest docker image
  20. Finii commented on Aug 26, 2022

    @Finii

    until their next release (v2.2.0)

    There is a new release 🎉 https://github.com/ryanoasis/nerd-fonts/releases/tag/v2.2.0

    ;)

  21. bebraw commented on Dec 3, 2022

    @bebraw
    ContributorAuthor

    I wonder what to do with this one. Given they've patched Nerd Fonts, should we simply close this issue?

  22. krish-r commented on Dec 3, 2022

    @krish-r

    Hi,

    • If possible, when closing this issue, can you add a note in your FAQ advising users to use nerd fonts >=v2.2.2 when patching the font manually.

    • Alternatively, instead of patching MonoLisa, users can now install Symbols Nerd Font (mono) from nerd fonts and use that as a fallback font if their terminal or application supports it.
      For Ex:

      • kitty terminal: Using symbols_map in kitty.conf as suggested in kitty's FAQ
        symbol_map <Unicode codepoints> Symbols Nerd Font

      • VS Code terminal: Using font fallback in settings.json
        "terminal.integrated.fontFamily": "'MonoLisa', 'Symbols Nerd Font'"

  23. bebraw commented on Dec 3, 2022

    @bebraw
    ContributorAuthor

    @krish-r Great info, added.

    I wonder if there's some way to "merge" another font with Symbols Nerd Font to generate a single file as that would provide another way to patch.

  24. Finii commented on Dec 3, 2022

    @Finii

    I wonder if there's some way to "merge" another font with Symbols Nerd Font to generate a single file as that would provide another way to patch.

    Well, that is the whole purpose of Nerd Fonts. To give users a patcher script that takes an arbitrary font and creates a patched version. For convenience Nerd Fonts also supplies some already patched versions of popular fonts.

    https://github.com/ryanoasis/nerd-fonts#font-patcher

    The Symbols Nerd Font was just a byproduct. It uses the same patcher script but an empty input font. It is for use cases where font substitution (by the OS's font system) is good enough.
    (Usually (at least on Linux) the system selects another (any other) font that has a required glyph, if it is not available in the current font. More advanced settings can be found here: https://github.com/ryanoasis/nerd-fonts/wiki/Font-Substitution-&-Fallback)

    (The 'problem' with merging is that you want to scale the symbols to somehow match the to-be-patched font.)

    Edit: Add link to font fallback wiki entry)

  25. bebraw commented on Dec 3, 2022

    @bebraw
    ContributorAuthor

    Well, that is the whole purpose of Nerd Fonts. To give users a patcher script that takes an arbitrary font and creates a patched version. For convenience Nerd Fonts also supplies some already patched versions of popular fonts.

    Yup, what I found out is that it doesn't work against variable fonts, though, as some underlying dependency doesn't support this type of patching.

    It's not exactly clear to me how to handle Nerd Fonts for the variable case but Symbols Nerd Font seems to address the problem.

    (The 'problem' with merging is that you want to scale the symbols to somehow match the to-be-patched font.)

    That's a great point.

  26. bebraw commented on Dec 3, 2022

    @bebraw
    ContributorAuthor

    For future reference or anyone that's interested, it seems the way to include Nerd Fonts to a variable font has been documented at https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/Inconsolata/font-info.md#inconsolata . This works only if you have access to the original Glyphs file, however.

  27. Finii commented on Dec 3, 2022

    @Finii

    It's not exactly clear to me how to handle Nerd Fonts for the variable case but Symbols Nerd Font seems to address the problem.

    That is most probably just font fallback. The is handled transparently by the OS's font subsystem.

  28. bebraw commented on Dec 3, 2022

    @bebraw
    ContributorAuthor

    I forgot to close this issue now that it has been documented at the FAQ. Thanks for the info.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions