Skip to content
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

[feature request] More awesome fonts #26

Closed
shibumi opened this issue Jul 21, 2016 · 16 comments
Closed

[feature request] More awesome fonts #26

shibumi opened this issue Jul 21, 2016 · 16 comments

Comments

@shibumi
Copy link

shibumi commented Jul 21, 2016

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:

other characters

You can find more from it here:
https://github.com/ryanoasis/nerd-fonts

@gabrielelana
Copy link
Owner

I looked into ryanoasis/nerd-fonts they include almost the same icon fonts

You don't have to look at the code point of the glyph (aka \uf196) to search for it because code points for icon glyphs are not fixed since they are not part of the UNICODE standard.

I relocate the glyphs to avoid clashing between icon fonts, see https://github.com/gabrielelana/awesome-terminal-fonts/blob/master/scripts/fu-relocate

@shibumi
Copy link
Author

shibumi commented Jul 22, 2016

@gabrielelana Ok, So how I got for example one of this fancy firefox icons? I can't find it in your icons.
You said that you just relocated it. So it has some other unicode? how can I print all your symbols with the unicode for it? do you have some script for it?

@gabrielelana
Copy link
Owner

@shibumi Thanks to you I found a problem, the font-awesome doesn't correctly define the glyphs inside the font. In the latest commits I've updated font-awesome to the latest release and used the CSS to create the font maps, so if you install the current master echo "\u$CODEPOINT_OF_AWESOME_FIREFOX" should work

@shibumi
Copy link
Author

shibumi commented Jul 23, 2016

@gabrielelana Awesome! Do you have an overview over all icons, like a file there you map the unicodes to names for the icons or something?

@gabrielelana
Copy link
Owner

@shibumi sure, for each font file there's a font map file like this all you have to do is to source those files and then you can refer to the glyphs by name

@shibumi
Copy link
Author

shibumi commented Jul 23, 2016

Thanks!

@shibumi shibumi closed this as completed Jul 23, 2016
@shibumi
Copy link
Author

shibumi commented Jul 23, 2016

@gabrielelana I have tried it now with the newest master and font-awesome.
The mapping seems wrong:

In the file is firefox \uf269 but if I try this, I get the beer icon..

@shibumi shibumi reopened this Jul 23, 2016
@gabrielelana
Copy link
Owner

@shibumi I've checked, for me it works and looking at the font with fontforge the firefox glyph is at \uf269. Can you try fc-cache -fv ~/.fonts? If it still doesn't work, try to restart X

@shibumi
Copy link
Author

shibumi commented Jul 23, 2016

@gabrielelana
Hello, Ok I have restarted X now. It hasn't changed something. And I've recognized another problem.
All icons are now wrong in my powerline.

Do you see the green icon there? normally there should be an 'ok'-sign.
bad icon

And my git commit icon is now a 'female icon'.

Seems like your last commits have missed up the usual encodings and all unicodes are now different.

Here is how it should look like:

good icon

I have resetted to commit 73f8840

@gabrielelana
Copy link
Owner

@shibumi You should always refer to glyphs by name on not by codepoint because when I update the fonts I may have to shuffle things around to avoid conflicts between all the fonts. You can find all the font names in the font maps. In your case try echo -e "\u$CODEPOINT_OF_AWESOME_CHECK"

@shibumi
Copy link
Author

shibumi commented Aug 3, 2016

Hello,
am talking about for example this icon here:

CODEPOINT_OF_AWESOME_MEDIUM='f23a'

In your font it's now a green M in my airline bar it should be an OK icon. It was an OK icon until commit 73f8840

@davidmpaz
Copy link

Hi there,

is there any results here?

I have the same problem. I have check the powerlevel9k theme also. But for example when I try on my terminal: echo '\f00c' which is the unicode for the check mark I get a weird character I can not recognize, or maybe the number 8, here is it:
selection_075

I have installed with the fallback strategy, by executing the shell scripts in the repo.

Thanks in advance for such a good project. My terminal looks really niceer now ;)

@shibumi
Copy link
Author

shibumi commented Dec 14, 2016

@davidmpaz
Which version of awesome-terminal-fonts do you use? I have no issues with git commit: fcfef52...

@davidmpaz
Copy link

davidmpaz commented Jan 3, 2017

Hi @shibumi , sorry for coming back late I have tried to use that commit. But still the same result.

I'm thinking now whether I messed with my system in a way I can not get it stable now with the fonts. Here is my output when installing:
selection_078

PS: I am on ubuntu 14.04 btw.

@shibumi
Copy link
Author

shibumi commented Jan 4, 2017

Hey @davidmpaz
The powerline looks ok on your screenshot. So you have only trouble with the 'OK'-Mark?
I am installing the fonts via Arch Linux package. I don't call install.sh or build.sh
I just move the fonts in the right directory. Have a look at:

 install -d "${pkgdir}/usr/share/fonts/${_pkgname}"
  install -d "${pkgdir}/etc/fonts/conf.avail"
  cd "${srcdir}/${_pkgname}/build"
  install -p -m 0644 * "${pkgdir}/usr/share/fonts/${_pkgname}/"
  install -p -m 0644 "${srcdir}/${_pkgname}/config/10-symbols.conf" "${pkgdir}/etc/fonts/conf.avail"

You can ignore the ${pkgdir} and ${_pkgname} stuff thats arch specific.
I just go to the build dir and move everything in it to /usr/share/fonts/awesome-terminal-fonts/
and then I move the 10-symbols.conf to /etc/fonts/conf.avail

and after all of that I update the fontfache via fc-cache

@davidmpaz
Copy link

Hi @shibumi
thanks for the hints, I did all what you said with respective recognized correct commit, unfortunately the result is the same. But I have some other news, by coincidence I found the OK icon!!

So, in my case and in terms of icons, what should be: CODEPOINT_OF_AWESOME_OK='f00c' is actually: CODEPOINT_OF_POMICONS_PAIR_PROGRAMMING='e007' I think this confirm #31 issue, the font mappings are somehow broken.
selection_079
From my side this issue is not relevant anymore, I think I have the fonts properly installed, I just can not find the correct unicode value for the icon.

Thanks again!
Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants