LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-23-2017, 04:10 PM   #1
TheNutCase
Member
 
Registered: May 2016
Location: Columbia, South Carolina14
Distribution: Slackware 15.0
Posts: 700

Rep: Reputation: Disabled
Installing fonts to slackware64?


How do I go about installing fonts for Slackware 14.2 (64-bit)?
 
Old 12-23-2017, 04:32 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
https://www.google.com/search?q=install+fonts+slackware

First result is https://docs.slackware.com/howtos:ge...:install_fonts

Do you have questions beyond what is covered in the SlackDocs?
 
1 members found this post helpful.
Old 12-23-2017, 06:00 PM   #3
TheNutCase
Member
 
Registered: May 2016
Location: Columbia, South Carolina14
Distribution: Slackware 15.0
Posts: 700

Original Poster
Rep: Reputation: Disabled
Yes - It would help if step 2 were explained in layman's terms.
 
Old 12-23-2017, 06:33 PM   #4
glorsplitz
Senior Member
 
Registered: Dec 2002
Distribution: slackware!
Posts: 1,308

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
man mkfontdir
mkfontdir - create an index of X font files in a directory

man mkfontscale
mkfontscale - create an index of scalable font files for X

man fc-cache
fc-cache - build font information cache files
-f Force re-generation of apparently up-to-date cache files, overriding the timestamp checking.
-v Display status information while busy.

Last edited by glorsplitz; 12-23-2017 at 06:34 PM.
 
Old 12-23-2017, 06:59 PM   #5
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
It you are using KDE, I think you can just double click on the .ttf file, and it will install it for you locally.
 
Old 12-23-2017, 07:52 PM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by TheNutCase View Post
Yes - It would help if step 2 were explained in layman's terms.
Here's the text from the wiki page...

Quote:
1. Copy your font files (.ttf and/or .otf) to their respective directories:
Code:
/usr/share/fonts/TTF
/usr/share/fonts/OTF
2. Run the following commands, with the directory where you copied the fonts as argument:
Code:
mkfontdir
mkfontscale
fc-cache -f -v
3. Restart X.
So, it's telling you in step one to place your ttf fonts into /usr/share/fonts/TTF/, and your otf fonts into /usr/share/fonts/OTF/.

Step two is telling you to run those commands against the directories you added files to. So, if you only added ttf fonts, you'd run:

Code:
mkfontdir /usr/share/fonts/TTF
mkfontscale /usr/share/fonts/TTF
And if you added otf fonts, you'd do the same but against that directory.

Once those commands have been run against all directories containing new fonts, run

Code:
fc-cache -f -v
I'll update the wiki to better explain this.

====================================

A quick suggestion, if you had come across that page before posting and was confused by those directions, it's best to explain that in your post. Otherwise it seems like you didn't even bother to do a simple google search for the answer and leads to worse answers. If you had posted that you didn't understand step #2 in your first post, then my first response would've been like the above rather than pointing you to google results.
 
Old 12-23-2017, 09:13 PM   #7
Gordie
Member
 
Registered: Aug 2007
Location: Nolalu, Ontario, Canada
Distribution: Slackware64-Current
Posts: 871

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Hmm. All I did was move the new fonts to /usr/share/fonts , deposit them in the appropriate subdirectories and run the applicable scripts from pkgtool
 
Old 12-23-2017, 10:17 PM   #8
TheNutCase
Member
 
Registered: May 2016
Location: Columbia, South Carolina14
Distribution: Slackware 15.0
Posts: 700

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
Here's the text from the wiki page...



So, it's telling you in step one to place your ttf fonts into /usr/share/fonts/TTF/, and your otf fonts into /usr/share/fonts/OTF/.

Step two is telling you to run those commands against the directories you added files to. So, if you only added ttf fonts, you'd run:

Code:
mkfontdir /usr/share/fonts/TTF
mkfontscale /usr/share/fonts/TTF
And if you added otf fonts, you'd do the same but against that directory.

Once those commands have been run against all directories containing new fonts, run

Code:
fc-cache -f -v
I'll update the wiki to better explain this.

====================================

A quick suggestion, if you had come across that page before posting and was confused by those directions, it's best to explain that in your post. Otherwise it seems like you didn't even bother to do a simple google search for the answer and leads to worse answers. If you had posted that you didn't understand step #2 in your first post, then my first response would've been like the above rather than pointing you to google results.
Actually, I didn't see that page before, so Thank you for the explanation.
 
Old 12-24-2017, 10:34 AM   #9
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
I just move the font files (.ttfs, .otfs, whatever) to ~/.local/share/fonts, and then run "fc-cache -f -v" as root.

There's really no reason to bother with mkfontdir and mkfontscale.
 
Old 12-24-2017, 11:01 AM   #10
Gordie
Member
 
Registered: Aug 2007
Location: Nolalu, Ontario, Canada
Distribution: Slackware64-Current
Posts: 871

Rep: Reputation: 364Reputation: 364Reputation: 364Reputation: 364
Quote:
Originally Posted by dugan View Post
I just move the font files (.ttfs, .otfs, whatever) to ~/.local/share/fonts, and then run "fc-cache -f -v" as root.

There's really no reason to bother with mkfontdir and mkfontscale.
I like that. Now it is my new way to do font business
 
  


Reply



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
[SOLVED] Slackware64-14.2 blurry fonts in GUI apps FlinchX Slackware 5 11-29-2017 04:28 PM
12.04 Browser fonts changed unexpectedly after installing new fonts and rebooting jdier Linux - Software 1 11-19-2012 11:51 AM
[SOLVED] Installing slackware64-13.37 0mani Slackware 4 04-10-2012 09:30 AM
[SOLVED] Installing AdobeReader in Slackware64 antonio-carioca Linux - Newbie 3 02-03-2011 10:08 AM
Ugly fonts k3b3 Slackware64 13.0 samac Slackware 2 08-29-2009 04:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:36 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