gabrielelana / awesome-terminal-fonts Goto Github PK
View Code? Open in Web Editor NEWTools and instructions on how to have awesome symbols in a terminal with a monospace font
License: MIT License
Tools and instructions on how to have awesome symbols in a terminal with a monospace font
License: MIT License
I've installed patched Source Code Pro (SourceCodePro+Powerline+Awesome+Regular.ttf). And it doesn't render well in a console application (MSYS2 mintty) or a GUI application (notepad), here is a screenshot (mintty in background, notepad in foreground):
For a comparison, here is the rendering of Source Code Pro unpatched (https://github.com/adobe-fonts/source-code-pro/releases/tag/2.030R-ro/1.050R-it):
I don't understand how can patch my font.
In the past I patched Terminus as Powerline, but now i want to embed the awesome chars, can you help me to know what is the way to patch with this fonts to my Terminus Powerline.
I reused the code into the droid.sh, and i don't get erros, so I continue with the installation using the FontBook. And I set the font into Iterm2, the problem is not rendered the right chars.
Here my fonts.
Terminus.ttf
Terminus-Powerline.ttf
One suggestion is to put the power of the Adobe Source Code, which is a source made especially for development.
This is what I am doing:
$ which fc-cache
/usr/local/bin/fc-cache
$ git clone https://github.com/gabrielelana/awesome-terminal-fonts.git
$ cd awesome-terminal-fonts
$ ./install.sh
$ ls ~/.fonts
devicons-regular.sh
devicons-regular.ttf
fontawesome-regular.sh
fontawesome-regular.ttf
octicons-regular.sh
octicons-regular.ttf
pomicons-regular.sh
pomicons-regular.ttf
I have iTerm2 set up to use Meslo LG M Regular for Powerline
, so I made ~/.config/fontconfig/conf.d/10-symbols.conf
look accordingly:
<fontconfig>
<alias>
<family>Meslo LG M Regular for Powerline</family>
<prefer>
<family>Pomodoro</family>
<family>FontAwesome</family>
<family>Octicons</family>
<family>Icomoon</family>
</prefer>
</alias>
</fontconfig>
Let's check if fc-list
sees Meslo LG M Regular for Powerline
:
$ fc-list | grep 'Meslo LG M Regular for Powerline'
/Users/jottr/Library/Fonts/Meslo LG M Regular for Powerline.otf: Meslo LG M for Powerline:style=RegularForPowerline
Let's check if fc-list
sees pomicons-regular
:
$ fc-list | grep Pomodoro
/Users/jottr/.fonts/pomicons-regular.ttf: Pomodoro:style=Regular
Let's check if anything from ~/.fonts/fontawesome-regular.sh
is available in the shell:
$ echo '\uf00c'
Nope. Nothing.
Running ./build.sh
first does not help either.
Also, a cursory check seems to indicate that some symbols, i.e. fa-hourglass seem to be missing from fontawesome-regular.sh
.
iTerm2 Build 2.9.20160206
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.11.3
BuildVersion: 15D21
$ zsh --version
zsh 5.2 (x86_64-apple-darwin15.0.0)
I followed the instructions but it does not seem to work. I'm on Ubuntu 15.10.
I read #11, I can see the icon if I enter echo "\uf20c"
in a terminal. I tried to move 10-symbols.conf
to /etc/fonts/conf.d/
with no success
Hello,
It would be awesome if you could use the release system. I am working on a package for Arch Linux.
So that everybody can install your fonts more easier.
Thanks!
Hello,
Just want to inform you that I have pushed your last release to the official arch linux repositories.
Users can now install your font directly via pacman -Syu awesome-terminal-fonts
.
https://github.com/Lukas-W/font-linux
Alternatives to the penguin glyph would be nice :)
Probably not the right place, but few questions.
I came across this SourceCodePro + Powerline + Awesome Regular font, it seems to be custom patch by the user. Would you know if the Awesome
bit was referring to this repo or Font Awesome?
With the fallback strategy, is the only benefit this repo provides a font map? I noticed some of the fonts haven't been updated in a while like with other repo's. Rendering wise, if fallback works would be effectively the same as having those glyphs patched together as a single font or are there potential differences?
OSX doesn't seem to support the fallback option from what I'm reading, and some terminals/OS have rendering issues where I assume fallback strategy won't be enough? Besides adding the glyphs to merge into a base font, how much work/time can be involved to fix those offset/size issues I've seen around the place? These official patched versions seem quite outdated: https://github.com/powerline/fonts , not sure how much that matters.
There are a small but no 0 group of people using Windows and terminal.
Add an automated way to install fonts.
I installed this font, and I set it, but the icon shows "? "This looks like this
I feel that you are in the configuration, writing very vague, resulting in many people installation is not successful... I hope you see this feedback. You can maintain your documents. To help more people use it
Hello,
I had installed this package from Arch's repo but am having trouble seeing whether it works or not. I thought since it's included in the official repo that Arch would include direction if not a trail of links to follow.
I checked /etc/fonts/10-symbols.conf and saw the following after installing the package:
<fontconfig>
<alias>
<family>PragmataPro</family>
<prefer>
<family>Pomodoro</family>
<family>FontAwesome</family>
<family>Octicons</family>
<family>Icomoon</family>
</prefer>
</alias>
</fontconfig>
so I copied and pasted the above to a newly created file: ~/fontconfig/fonts.conf, following advice that I got from irc. Thanks for your work.
I've followed the directions in the install section but OS X still doesn't seem to honor the fallback font config for freetype
echo "\uf20c"
Any suggestions on getting this working ?
If #7 (comment) works for more than just me; it would probably we worth adding to the README.
Hi,
I'm not quite sure if this is a borked setup on my side or something wrong with this package/one of its dependencies, but my hope is we can figure this out here together rather than me rage-typing into search engines.
I'm running Arch Linux and currently using the AUR package provided, which builds straight from this repo; however, the official package shows the same behaviour.
Recently (~1 week ago) I noticed two icons I was using in my statusbar differed from what they should be, namely the lower-case lambda, and the Golang Gopher icon provided by the Devicons icon set. This probably co-incided with one of the semi-regular VCS rebuilds I run on my system, which rebuilds all packages based directly off an upstream repo, including this one.
The lambda came back (somehow, don't know how, don't really mind), yet the Gopher is still missing. According to the cheatsheet, the icon uses codepoint \e624. When I type echo "\ue624"
, and when I look at my statusbar, this shows the greek upper-case Sigma:
Incidentally, I see similar behaviour for all other code points in Devicons, Octicons and Pomicons, yet FontAwesome works just fine.
Any idea what this could be related to? I'm CC'ing @shibumi as they provided the Arch package and might know the ins and outs.
My hunch is that I have some font that is using those code points, but I did not consciously install any...
Thanks, and have a great day! :)
fu-relocate is redirected 2>/dev/null
so any failure is displaced to the next dependent line, in this case build.sh:13 (fu-relocate ...) to build.sh:14 (cp ...).
Appending || { echo "Failed for ..." && exit 1 }
to each command shows me that the first invocation of fu-relocate failed... and removing the redirection to /dev/null
shows that I was missing FontForge.
Possible fixes:
which fontforge >/dev/null || echo "Missing FontForge" && exit 1
(most portable?)
[ -x /usr/bin/fontforge ] || echo "Missing FontForge" && exit 1
(depends on location)
dpkg -l | grep fontforge || echo "Missing FontForge" && exit 1
(depends on dpkg)
It contains a bit more icons but it needs some remapping with octicons.
brew install fc-cache
Error: No available formula for fc-cache
Searching formulae...
Searching taps...
What is the name of Source Code Pro Powerline Awesome font (patched one)? I want to use it my editor (VS Code), in which I had to type the name of the font to use it, but I am not able to get its right name. :-/
I just find out the Modified version of Source Code Pro. https://github.com/nathco/Office-Code-Pro
Can we have that built with awesome terminal fonts? That would be wonderful I think.
If you can, please add a Python (Snake) icon ;) [would fix this for awesome-terminal-fonts
users -
https://github.com/Powerlevel9k/powerlevel9k/issues/338]
I'm trying to use the fonts with Secure Shell in Chrome, and they're not displaying properly. At first I thought it was my installation/method of usage, but after setting my mono-spaced font to SourceCodePro+Powerline+Awesome in the Chrome preferences, I'm beginning to think this is a Chrome incompatibility.
It displays fine in the preferences preview:
But when it comes to actually displaying text on a page, it fails:
If this is a Chrome issue, then so be it, but other iterations of SouceCodePro work without an issue in hterm (Secure Shell), so I'm not 100% sure where the problem lies. If there's anything else I should try, let me know.
Hi, sorry i do not understand what i have to do on this instruction:
Hi, first of all, thank you for the great work.
I am trying to install the fonts via the fallback strategy, but seems not to work and I gave up and install via patch. But I would like to install the first method. Here is what I am doing:
I've followed the steps in the README, but does not work. So I tried to install the fonts in /usr/share/fonts/truetype
, and put the 10-symbols.conf
in /usr/share/fontconfig/conf.d/
.
Later I run fc-cache -fv /usr/share/fonts
, as root, but nothing seems to work.
My 10-symbols
is:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!--
When a glyph is missing in the current font freetype2 will look into
other installed fonts to see if it's going to find it, but which fonts?
and in which order?
The configuration below aim to declare an ordered list of fonts
to be looked into when a glyph is not found in a specic font
<alias>
<family>FONT_WITH_A_POSSIBLY_MISSING_GLYPH</family>
<prefer>
<family>FIRST_FONT_TO_LOOK_INTO</family>
<family>SECOND_FONT_TO_LOOK_INTO</family>
<family>...</family>
</prefer>
</alias>
-->
<fontconfig>
<alias>
<family>Ubuntu</family>
<prefer>
<family>FontAwesome</family>
<family>Pomodoro</family>
<family>Octicons</family>
</prefer>
</alias>
</fontconfig>
I've also tried with Ubuntu Mono
and UbuntuMono
.
I am using Linux Mint Debian Edition.
Any ideas?
Best regards
It would be nice to have a list of supported terminals, because having FA in terminal is great, but on some terminals it is just not usable at all. Screenshot taken using Konsole:
p
, g
, y
or q
are trimmed at the bottom and it makes really difficult type commands or, even worse, read/edit files;/usr/local/bin
and _
? it's just one space. For some reason, using FA on Konsole misplaces the cursor in such a way that, the more characters you type, the wider becomes the gap. Which makes editing typos in the middle of the line very difficultSo yeah, please add which terminals are proven to be working with FA, so I (and others too) can switch to it ;-)
Could you please update fontawesome to 4.7.0, so that there is support for the new icons?
Hello,
The last stable commit was fcfef52 every commit after this is broken due to font mapping issues.
When I apply any other commit after this my zsh powerline seems broken.
Screenshots:
I have no idea if this is the fault of zsh-theme-powerlevel9k or of awesome-terminal-fonts.
Just curious if you'd be willing to patch the Zurb Foundation Icon 3 set into this great font collection?
http://zurb.com/playground/foundation-icon-fonts-3
They are a bit less "cartoony" than the bootstrap icon fonts.
Hi,
I would like to use e.g the "Menlo Regular for Powerline" in combination with the awesome fonts.
As far as I understand I would need to patch these myself?
Is there a a simply way to do this?
I think there's a better way for fontawesome to be used in terminal.
Just install FontAwesome.otf file and fix .Xresources:
*faceName: inconsolata, font-awesome
No need to patch existing fonts.
No need to support them all (there are ~30 popular terminal fonts).
Hello,
I've just found out that awesome-terminal-fonts only support characters until \uf196.
Could you please add the other characters?
This is a list of other characters:
You can find more from it here:
https://github.com/ryanoasis/nerd-fonts
I followed the instruction but nothing happened. I want to use an octicon git-branch. I also use the font PragmataPro
as my default font in terminal as well as vim
.
Here is my set up
./build
into .fonts
directoryfc-cache -fv ~/.fonts
./config/10-symbols.conf
to ~/.config/fontconfig/conf.d
Because I use PragmataPro
as my font so I leave the config file as it was.
But after did all of these things, nothing happened. I still miss octicon git-branch.
Did I missed?
After follow the instructions and the comments in #20 I get to the following point:
1 - octoicons
are not found
2 - descriptive encoding of the icons des not work
sik@Nekyia:~$ fc-list | ack -i "icons|awe"
/home/sik/.fonts/devicons-regular.ttf: icomoon:style=Regular
/home/sik/.fonts/fontawesome-regular.ttf: FontAwesome:style=Regular
/home/sik/.fonts/pomicons-regular.ttf: Pomodoro:style=Regular
sik@Nekyia:~$ echo -e "\u$CODEPOINT_OF_AWESOME_TWITTER"
\u
sik@Nekyia:~$ echo -e "\uf099"
Hello,
The fonts are not visible in the terminal configuration (Edit > Profiles > Edit current ...).
I have tried to place the fonts in ~/.fonts/
or /usr/share/fonts/truetype
.
I followed the instructions from the oh-my-git doc:
# Copy the awesome fonts to ~/.fonts
cd /tmp
git clone http://github.com/gabrielelana/awesome-terminal-fonts
cd awesome-terminal-fonts
git checkout patching-strategy
mkdir -p ~/.fonts
cp patched/*.ttf ~/.fonts
# update the font-info cache
sudo fc-cache -fv ~/.fonts
Any idea?
with solo user install and multi user install for powerline fonts i have 10-symbols.conf in multiple folders and i am getting lost about wich is effective. Also when you say "replacing PragmataPro with the name of the font you want to use in the terminal " you talk about one of the 4 fonts available in the .buid ? I'm sorry it seems a stupid question but this is not obvious for me, and i have also to integrate it with Powerlevel9K that is not obvious too. I know when i'll succeed it i'll say it was obvious but now i'm lost and search a little help here after posting a lot of post in askUbuntu ^^
I'll delete this post as fast as i receive an answer that direct me a little as this is not a real issue .... sorry
I'm using rxvt-unicode, and I can't get the fonts to show up, with the fallback method. I'm trying
echo -e "\uf175"
But this produces a square in rxvt. If I try it in xfce4-terminal, it works fine.
What is the license of your project ? And what are the fronts licenses provided in the fonts directory ?
It could also be nice to reference those fonts in the README.md
Regards,
Fabien
Installed this font using the windows method, however the font ins't appearing on the font list for wsl-terminal.
this is my .zshrc content:
# Path to your oh-my-zsh installation.
# Path to your oh-my-zsh installation.
export ZSH=/Users/rlanffy/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
#ZSH_THEME="agnoster"
ZSH_THEME="powerlevel9k/powerlevel9k"
DEFAULT_USER=""
POWERLEVEL9K_MODE='awesome-patched'
#POWERLEVEL9K_MODE='flat'
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
#POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="↱"
#POWERLEVEL9K_MULTILINE_SECOND_PROMPT_PREFIX="↳ "
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
I installed pro like how to install as your said.
when the config is POWERLEVEL9K_MODE='awesome-patched' and the terminal is like this:
when the config is POWERLEVEL9K_MODE='flat' and the terminal is like this:
I have the following two fonts specified in my 10-symbols.conf file to use the awesome-terminal-fonts:
<fontconfig>
<alias>
<family>FiraCode</family>
<prefer>
<family>Pomodoro</family>
<family>FontAwesome</family>
<family>Octicons</family>
<family>Icomoon</family>
</prefer>
<alias>
<family>Roboto</family>
<prefer>
<family>Pomodoro</family>
<family>FontAwesome</family>
<family>Octicons</family>
<family>Icomoon</family>
</prefer>
If either of these fonts are set as one of the default fonts in Firefox, the fonts render as random symbols in Firefox. Not just the extra symbols, but regular letters and numbers too.
Elsewhere on the system, both fonts render fine, with the additional font symbols rendered as expected.
Not sure how to fix this. Is this an issue with Firefox or my 10-symbols.conf?
Arch Linux has this in it's repo, so does Manjaro. I'm using Manjaro, and I installed the package. I am able to use the fonts. But I was confused regarding what part of the the installation instructions I need to follow. Also the directories change, so I had to make some minor changes to commands.
/usr/share/fonts/awesome-terminal-fonts
. Looks like the package copies them here..sh
files already present in above directory/etc/fonts/conf.d/10-symbols.conf
. Replaced font to Hack
using root permissions. (I guess this was unnecessary, I should have copied and made change only to local file)~/.config/fontconfig/conf.d
, had to create that directory first.I guess I did it right, still wanted to verify. Also, is there any specific powerline theme that makes use of these icons? How does one make use of these icons?
I tried patching Hoefler Operator Mono but the icons are huge. It doesn't seem like the patch script is respecting the ratios. I'm using a version of Operator Mono SSm that I patched with the Powerline icons.
This is how I modified one of the existing patch scripts.
#!/bin/sh
cp ./fonts/OperatorMonoSSmBook+for+Powerline.otf S0.ttf
./patch S0.ttf --symbols=./fonts/fontawesome-webfont.ttf --to-namespace=AWESOME --rename-as=S1 --starting-at='0xe100' --ratio=0.75 --shift-x=100 --shift-y=50
./patch S1.ttf --symbols=./fonts/octicons-regular.ttf --to-namespace=OCTICONS --rename-as=S2 --starting-at='0xe800' --ratio=0.75 --shift-y=25
./patch S2.ttf --symbols=./fonts/pomicons-regular.ttf --to-namespace=POMICONS --rename-as='OperatorMonoSSmBook+for+Powerline+Awesome' --starting-at='0xf000' --ratio=0.5 --shift-x=-100 --shift-y=25
cat S1.sh S2.sh >> OperatorMonoSSmBook+for+Powerline+Awesome.sh
cp OperatorMonoSSmBook+for+Powerline+Awesome.* ~/.fonts
mv OperatorMonoSSmBook+for+Powerline+Awesome.* ./patched
sudo fc-cache -rv
rm -rf S?.*
I'm getting the above error when trying to "copy all the fonts from ./build directory to ~/.fonts directory"
I wish to use Pomicons on iTerm2 in Mac OS X.
If understood correctly I need to copy fonts from build
to ~/Library/Fonts
(instead of to ~/.fonts
).
But I'm not sure where to put the 10-symbols.conf
, provided that Mac OS X font system can understand this fontconfig
file.
For now I'm working around this issue using the "Non-ASCII Font" fallback of iTerm2 but this is not a very good solution as you can add only just one font alternative.
I know about nothing about Fonts and how Fonts works on Mac OS X, and I'm also having some difficult in understand what to search on Google to find a solution, any help will be appreciated.
I'm stuck with windows at work, I tried your patched branch, but without luck, Mintty refuses to see the patched fonts, there is no chance to use them or there is another way to patch them?
Silly question, but how do I list all the symbols in the font files? I can see that in the build.sh files they are listed with their names, and I can use ctrl-shift-u to enter the codepoint, but is there some kind of program that I could use to see all of them?
I have tried looking at the pomodoro font with gucharmap, but I can't find the added symbols? Perhaps because they are in the private area?
Hello,
Would it be possible to provide examples (like a git prompt?)
That would be really helpful
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.