JetBrains / JetBrainsMono

JetBrains Mono – the free and open-source typeface for developers
https://jetbrains.com/mono
SIL Open Font License 1.1
10.88k stars 301 forks source link

v1.0.5 and v1.0.4 unicode not rendering in OSX #203

Closed hahuang65 closed 4 years ago

hahuang65 commented 4 years ago

I'm not able to render unicode glyphs. They all show up as a square with a ? in it. I'm using the exact same font files on my Linux box (literally the exact same file cuz they're checking into my dotfiles directory) and it works fine over there.

Here's what it looks like Screen Shot 2020-04-09 at 10 45 44 AM

I've tried this not only in vim inside iTerm, but also in Atom. Both have issues rendering. These are specifically the glyphs I've been trying to render:

"\uf110" "\uf129" "\uf071" "\uf05e" "\uf00c"

I saw https://github.com/JetBrains/JetBrainsMono/issues/200 so I tried v1.0.4 and it's the same issue.

Anyone had any similar experiences?

philippnurullin commented 4 years ago

Hi, @hahuang65 we will try to reproduce. Please add the exact software versions.

hahuang65 commented 4 years ago

macOS 10.14.6 (18G3020)

iTerm2 Build 3.3.2

Vim:

$ vim --version
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Apr  4 2020 14:33:44)
macOS version
Included patches: 1-500
Compiled by Homebrew

atom: 1.45.0

Anything that I'm missing?

philippnurullin commented 4 years ago

Sorry for misleading you. We don't support this glyphs. The are placed in private area, so there is no common containment in them. What you were expecting to see? Can you send the example with maybe other font rendering them?

hahuang65 commented 4 years ago

It's definitely working on my Arch laptop: 2020-04-10-005317_1411x768_scrot

The glyphs I'm trying to render are from these instructions: https://github.com/maximbaz/lightline-ale#using-icons-as-indicators

I'm able to write them in Vim by pressing (in insert mode) ctrl-v then u, then the corresponding code, so for example, for the checkmark, my keystrokes would be exactly:

<C-v>uf00c

And here's my font config for Alacritty on that machine:

$ awk 'NR >=68 && NR <=106' ~/.config/alacritty/alacritty.yml
font:
  # The normal (roman) font face to use.
  normal:
    family: JetBrains Mono # should be "Menlo" or something on macOS.
    # Style can be specified to pick a specific face.
    style: Retina

  # The bold font face
  bold:
    family: JetBrains Mono # should be "Menlo" or something on macOS.
    # Style can be specified to pick a specific face.
    style: Bold

  # The italic font face
  italic:
    family: JetBrains Mono # should be "Menlo" or something on macOS.
    # Style can be specified to pick a specific face.
    style: Italic

  # Point size of the font
  size: 12.0

  # Offset is the extra space around each character. offset.y can be thought of
  # as modifying the linespacing, and offset.x as modifying the letter spacing.
  offset:
    x: 0
    y: 0

  # Glyph offset determines the locations of the glyphs within their cells with
  # the default being at the bottom. Increase the x offset to move the glyph to
  # the right, increase the y offset to move the glyph upward.
  glyph_offset:
    x: 0
    y: 0

  # OS X only: use thin stroke font rendering. Thin strokes are suitable
  # for retina displays, but for non-retina you probably want this set to
  # false.
  use_thin_strokes: true

As you can see, there's no fallback font configured.

philippnurullin commented 4 years ago

I'm sorry to disappoint you, but there is some kind of fallback mechanism is involved. There is no such glyph in JetBrains Mono for now. I'm 100% sure, because a drew all of them. On the bright side i can add them in one of the next updates.

hahuang65 commented 4 years ago

I believe you, but then I wonder what I did.

I've been using JetBrains Mono for at least 3 months now, haven't changed fonts.

Yesterday I attempted to add these glyphs. It didn't work, so I went to download Power line patched version of JetBrains Mono. On that GitHub page it mentioned you guys officially supported Powerline glyphs since 1.0.2.

So I downloaded latest version, and as soon as I did, the glyphs appeared.

Also I should note... I don't have any other custom fonts installed on my Arch Linux, so I don't see how I could have gotten these glyphs at all.

philippnurullin commented 4 years ago

Can you send me the exact link to the patched version? Maybe you downloaded the NerdFont patched version & it having this icons. That's the freshest version i can find wit it https://github.com/ndtho8205/JetBrainsMono

hahuang65 commented 4 years ago

I downloaded it directly from your repos Releases page. 1.0.5 version

hahuang65 commented 4 years ago

I'll be more clear, sorry.

I found this page https://github.com/seanghay/JetBrainsMono-Powerline

But when I read that first few lines, I went directly to your releases page to download it

hahuang65 commented 4 years ago

I just did an experiment. I reverted my dotfiles (I keep my font in there) to the version I was running in January when I first installed JetBrains.

The glyphs still show up. I wonder what is going on here? What could the fallback be?

hahuang65 commented 4 years ago

Okay, feel free to close this, or use it as the ticket to add those aforementioned glyphs. The kind people over at alacritty showed me how the font fallback system works, and so it's definitely coming from one of the fallbacks.

Thank you for your patience with me and the great support! Keep up the awesome work! I haven't stuck to a font for so long since I found Input. I really love JetBrains Mono!

philippnurullin commented 4 years ago

Glad to hear you found a solution & thanks for the kind words! We are working on making JetBrains even better. Stay tuned.

hasanelfalakiy commented 6 months ago

does the jetbrainsmono font support the Unicode symbols degrees, minutes and seconds?

alexeyten commented 6 months ago

does the jetbrainsmono font support the Unicode symbols degrees, minutes and seconds?

Yes, it does.

image

https://www.jetbrains.com/lp/mono/

hasanelfalakiy commented 6 months ago

okay thanks sir