LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Using Font Awesome in terminal (https://www.linuxquestions.org/questions/linux-newbie-8/using-font-awesome-in-terminal-4175595324/)

slirx 12-13-2016 03:29 AM

Using Font Awesome in terminal
 
Here is how font awesome icon is displayed in terminal:
http://i.imgur.com/B59n2qD.png
and sublime text:
http://i.imgur.com/zKrcGpm.png

How can I fix font awesome icon in terminal? Is there a way to do it?

BW-userx 12-13-2016 10:31 AM

Quote:

Originally Posted by slirx (Post 5641433)
Here is how font awesome icon is displayed in terminal:
http://i.imgur.com/B59n2qD.png
and sublime text:
http://i.imgur.com/zKrcGpm.png

How can I fix font awesome icon in terminal? Is there a way to do it?

you should be able to just install your font, update cache, then go into your terminal preferences then change your font.

unless you're using something like xterm, where you'd have to edit its config file.

slirx 12-13-2016 11:23 AM

Quote:

Originally Posted by BW-userx (Post 5641620)
you should be able to just install your font, update cache, then go into your terminal preferences then change your font.

unless you're using something like xterm, where you'd have to edit its config file.

Font Awesome is installed, because I can see the icon between <span> and </span>. The problem that the icon is displayed with fixed character width and </span> after the icon overlays it.
I've tried urxvt, termite, xfce4-terminal.

BW-userx 12-13-2016 11:28 AM

Quote:

Originally Posted by slirx (Post 5641650)
Font Awesome is installed, because I can see the icon between <span> and </span>. The problem that the icon is displayed with fixed character width and </span> after the icon overlays it.
I've tried urxvt, termite, xfce4-terminal.

I hope this is what you are doing and it helps

After you get up and running, you can place Font Awesome icons just about anywhere with the

and hopefully this

http://askubuntu.com/questions/70022...-character-map

here too

gabrielelana/awesome-terminal-fonts

slirx 12-13-2016 11:39 AM

Quote:

Originally Posted by BW-userx (Post 5641653)

No, it does not help. The first link is about using Font Awesome in web browser. I need to fix displaying the icon in linux terminal (https://en.wikipedia.org/wiki/Linux_console), not web browser. The next link doesn't contain anything related to terminal too.

Anyway, thanks.

BW-userx 12-13-2016 11:45 AM

Quote:

Originally Posted by slirx (Post 5641659)
No, it does not help. The first link is about using Font Awesome in web browser. I need to fix displaying the icon in linux terminal (https://en.wikipedia.org/wiki/Linux_console), not web browser. The next link doesn't contain anything related to terminal too.

Anyway, thanks.

that third link I put in there has icon fonts for terminal use

Shadow_7 12-14-2016 01:05 PM

Terminals tend to have fixed width fonts. You might try with urxvt, rxvt with unicode extenstions. Although likely futile IMO if you're not monospace and/or bitmap font wise. Or use the gui versions of emacs / vi.


All times are GMT -5. The time now is 02:11 AM.