LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-07-2014, 12:11 PM   #1
André0991
LQ Newbie
 
Registered: Jul 2008
Location: São Paulo
Distribution: Slackware
Posts: 15

Rep: Reputation: 0
Vim-airline - fonts - what's the equivalent of ~/.fonts? - Slackware 14.1


Hi.

I'm trying to install some fonts in order to fix a (very common) problem on airline (the ">" is with the wrong graphics).

So I came across this page:

https://powerline.readthedocs.org/en...t-installation

According to that page, I have to download some fonts and

"Move your patched font to ~/.fonts/ (or another X font directory)"

This directory doesn't exist here.
Searching for fonts, I found that /usr/share/fonts has some fonts. Should I use this directory? I'm in doubt because with ~/.fonts it wouldn't be required root access.

After that, I'll have also to run fc-cache.


Thanks.

PS: Yes, I saw this thread, but it didn't work for me: http://www.linuxquestions.org/questi...ne-4175457241/
 
Old 04-07-2014, 07:28 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
~/.fonts is not distro specific. I only skimmed the instructions, but you should be able follow them as written on Slackware.
 
Old 04-08-2014, 06:49 AM   #3
André0991
LQ Newbie
 
Registered: Jul 2008
Location: São Paulo
Distribution: Slackware
Posts: 15

Original Poster
Rep: Reputation: 0
Hello.

Thanks for your answer.

I tried to follow the instructions:

Code:
cd
mkdir .fonts
cd .fonts/
wget https://github.com/Lokaltog/powerline/raw/develop/font/PowerlineSymbols.otf
wget https://github.com/Lokaltog/powerline/raw/develop/font/10-powerline-symbols.conf
fc-cache -vf ~/.fonts

Output:
Quote:
/home/andre0991/.fonts: caching, new cache contents: 1 fonts, 0 dirs
/var/cache/fontconfig: not cleaning unwritable cache directory
/home/andre0991/.cache/fontconfig: cleaning cache directory
/home/andre0991/.fontconfig: not cleaning non-existent cache directory
fc-cache: succeeded
The instructions say:
"Move 10-powerline-symbols.conf to either ~/.fonts.conf.d/ or ~/.config/fontconfig/conf.d/, depending on your fontconfig version"
But my system doesn't have any of these directories, so I created conf.d. Am I right? (I looked at /home/andre0991/.config/fontconfig/fonts.conf, but it doesn't say anything about paths)

Code:
cd ~/.config/fontconfig/
mkdir conf.d
cd conf.d/
mv 10-powerline-symbols.conf ~/.config/fontconfig/

After that, I can select the powerlinesymbols font in xfce4-terminal, however, it looks really ugly. The some letters are very spaced from others (for example, "vim" looks like "vi m"). Trying to use powerlinesymbols in Konsole makes strange characters appear on the screen.

I wonder if the problem is with the conf.d directory.



EDIT: Reading the Troubleshooting, I realized that I have to use UTF-8, but I'm confused: bash-4.2$ locale -a | grep en_US
en_US
en_US.utf8

The file /etc/profile.d/lang.sh has a comment line
Quote:
#export LANG=en_US.UTF-8
Why UTF-8 instead of utf8?


EDIT 2: Even using en_US.utf8, the problem persists.

Last edited by André0991; 04-08-2014 at 07:06 AM.
 
  


Reply

Tags
vim


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
12.04 Browser fonts changed unexpectedly after installing new fonts and rebooting jdier Linux - Software 1 11-19-2012 12:51 PM
Place to search for equivalent fonts? pljvaldez General 1 10-26-2011 05:17 PM
A frontend to change the fonts of xterm/mrxvt using the ~/.fonts folder ? frenchn00b Linux - General 1 05-28-2008 01:28 PM
LXer: Metric equivalent of Microsoft fonts for Linux LXer Syndicated Linux News 0 05-14-2007 05:31 AM
Fonts question: how to get a full list of fonts in Abiword vharishankar Linux - Software 1 03-17-2005 12:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration