-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto-detect terminals and their fonts #1
Comments
You can add |
Works in tilix too. Thanks! |
Hi @BlitzKraft and @IvoLimmen, I didn't write any script to autodetect the fonts in tilix or fbterm.
I recommend you to check the file |
I checked the config, it just says "No font found". Here is the full xml doc: <?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias><family>No font found</family><default><family>icons-in-terminal</family></default></alias>
</fontconfig> So, I must be missing something. The font I am using in gnome-terminal is "Hack". I also tested with Iosevka (patched for powerline) and that doesn't work. Many symbols show up with "missing glyph squares". |
@BlitzKraft I've open an issue about that #7 In the meantime, you can run |
Mine says: <?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias><family>Droid Sans Mono for Powerline</family><default><family>icons-in-terminal</family></default></alias>
<alias><family>No font found</family><default><family>icons-in-terminal</family></default></alias>
</fontconfig> I use the Hack font. Demo did just fine. |
Mac support would be awesome, in particular iTerm2! |
@amoriello I don't have a Mac so I can't help. |
Hey Seb, I finally found cycles to look at this. Just replace the section about editing Plist that says:
to
I've attached the screenshot to help you making this. Regarding print_icon.shThis stuff just doesn't work for me, it prints the unicode code point instead of the icon. I did not took time to look in this shell madness of yours 😜 , so I made a quick python script to ensure the fallback mechanism is working properly: #!/usr/bin/env python3
'''
check_icons.py
'''
import os
from collections import namedtuple
IconInfo = namedtuple('IconInfo', ['name', 'code'])
FontInfo = namedtuple('FontInfo', ['name', 'num_entries'])
def banner(text, width=80):
''' Just a banner
'''
title = ' '.join(text.upper()).center(width)
print('#' * width)
print('%s' % title)
print('#' * width)
def icons_info(line):
''' Generator over icons in line
'''
icons = line.split(';')
for icon in icons[:-1]:
yield IconInfo(*icon.split(':'))
def fonts_info(mapping):
''' Generator over fonts and their icons
'''
for line in mapping:
if line.startswith('#'):
font_info = FontInfo(*line[1:].split(':'))
continue
yield font_info, icons_info(line)
def main():
''' main
'''
mapping = open('./build/mapping.txt', 'r')
columns = int(os.popen('stty size', 'r').read().split()[1])
for font_info, icons in fonts_info(mapping):
banner(font_info.name, width=columns)
for icon in icons:
print('%s ' % chr(int(icon.code, 16)), end='')
print('\n' * 3)
if __name__ == '__main__':
main() Tutorial ScreenshotsFont bookPlistFinderCheers. |
@amoriello Thank you very much for your help ! |
I just see a bunch of boxes on Urxvt (however terminator works on the same system). Font family is in Xrerouces 30-icons.conf below:
|
It don't work for me on xterm & uxterm. (But i don't hard try) |
WSLtty on Windows 10 doesn't play nice with auto or manual installation. |
Can you please add support to kitty? Website: https://sw.kovidgoyal.net/kitty/ |
Konsole works nicely. It can be checked off. I tested on konsole version 19.08.3. Installed using the |
Just want to say the walkthrough posted for MacOS no longer works in Catalina. The DefaultFontFallbacks.plist has either moved or been replaced with some other solution so people on that repo are moving back to Patched Fonts. |
hello to all , i did everything i could and followed as well the post...im using kitty the test does work im using hack as my main font ...if i test it in the terminal i can see all the glyphs but whatever im doing ...theres no way to have the icons displayed in nnn ...did i miss something ?? thanks for your help |
can i use it on windows 10 without WSL?? |
Kitty seems to work fine for me. |
could you add alacritty to the list of terminals that need supporting |
Foot terminal font successfully installed through autodetect, works perfectly |
@sebastiencs Fancy to add Alacritty as suggested by @godalming123 previously? |
@amoriello Do you know any reason why I'm using macos sonoma, Iterm2, and zsh shell. |
List of supported terminals for auto generating a good fontconfig file.
The text was updated successfully, but these errors were encountered: