ryanoasis / nerd-fonts

Iconic font aggregator, collection, & patcher. 3,600+ icons, 50+ patched fonts: Hack, Source Code Pro, more. Glyph collections: Font Awesome, Material Design Icons, Octicons, & more
https://NerdFonts.com
Other
54.73k stars 3.65k forks source link

urxvt - some glyphs shown as square [] in specific font size #1105

Closed tigerinus closed 1 year ago

tigerinus commented 1 year ago

🗹 Requirements

🎯 Subject of the issue

This is more of a question asking for help: I recently switched over to urxvt from gnome-console, the see that certain glyphs shown as []

Experienced behavior:

image

Expected behavior:

The glyphs should not be shown as []

Example symbols:

 ~  dotfiles   master ✚ 1  

🔧 Your Setup

URxvt*background: [90]#000000
URxvt*clipboard.autocopy: false
URxvt*colorUL: Cyan
URxvt*cursorColor: Magenta
URxvt*depth: 32
URxvt*fading: 38
URxvt*font: xft:FiraCode Nerd Font Mono:size=10
URxvt*foreground: White
URxvt*iso14755: false
URxvt*keysym*C-S-0x43: eval:selection_to_clipboard
URxvt*keysym*C-S-0x56: eval:paste_clipboard
URxvt*letterSpace: -1
URxvt*loginShell: true
URxvt*matcher*button: 1
URxvt*perl-ext-common: default,selection-to-clipboard,matcher
URxvt*scrollBar: true
URxvt*scrollBar_right: true
URxvt*scrollColor: #1A1A1A
URxvt*scrollTtyKeypress: true
URxvt*scrollTtyOutput: false
URxvt*scrollWithBuffer: false
URxvt*scrollstyle: plain
URxvt*skipScroll: true
URxvt*underlineColor: Blue
URxvt*underlineURLs: true
URxvt*url-launcher: /usr/bin/xdg-open
URxvt*visualBell: true

If I change the size from size=10 to size=12, then it looks OK: image

★ Screenshots (Optional)

tigerinus commented 1 year ago

A workaround - update ~/.Xresources with:

URxvt*font: xft:FiraCode Nerd Font Mono:pixelsize=13
Xft*rgba: rgb
Finii commented 1 year ago

Thanks for the completely filled and detailed report!

Did you insall just the 2 mentioned fonts or more?

It is just this arrow-upward thing? It's unicode is 271a.

It is not part of Fira Code:

image

So you get this from some other font. Why it fails for some sizes I can only guess. Maybe it comes from a bitmap font? But that is an issue with urxvt.

To see which fonts are providing the glyph, do

$ fc-list ':charset=271a'

On my machine there are 370+ fonts that provide the arrow-up glyph.

Well, the missing / problematic char is not patched / touched by Nerd Fonts font-patcher, so closing.

Finii commented 1 year ago

Maybe you should / could prefer some nice outline font for that glyph via fontconfig. Then you can decide which fallback font is used by urxvt and not some random (possibly bitmap) font.

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a new issue, complete the issue template with all the details necessary to reproduce, and mention this issue as reference.