LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-08-2014, 11:31 AM   #1
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
Trouble setting custom fontpath


Hi, I've installed some fonts and I realised I had to change the fontpath. Did a search for it on google and most tutorial were outdated (requiring a xorg.conf file). I search a bit further and I've found this but it is not working.

My /usr/share/fonts folder:
Code:
pedro@slack:/usr/share/fonts$ ls -lh
total 264K
drwxr-xr-x 2 root root  84K Fev 26 14:58 100dpi/
drwxr-xr-x 2 root root  84K Fev 26 14:58 75dpi/
drwxr-xr-x 2 root root 4,0K Mar  1 12:30 BASE/
drwxr-xr-x 2 root root 4,0K Mar  1 12:30 EAST_ASIA/
drwxr-xr-x 2 root root 4,0K Mar  1 12:30 MIDDLE_ASIA/
drwxr-xr-x 2 root root 4,0K Nov 16  2010 OTF/
drwxr-xr-x 2 root root 4,0K Nov 16  2010 Speedo/
drwxr-xr-x 2 root root 4,0K Mar  1 12:30 TERMINUS/
drwxr-xr-x 2 root root  12K Nov 15 10:32 TTF/
drwxr-xr-x 2 root root 4,0K Nov 16  2010 Type1/
drwxr-xr-x 2 root root 4,0K Fev 26 14:58 cyrillic/
drwxr-xr-x 3 root root 4,0K Nov 13  2010 encodings/
drwxr-xr-x 2 root root  12K Mar  8 13:52 local/
drwxr-xr-x 2 root root  32K Mar  8 13:45 misc/
drwxr-xr-x 2 root root 4,0K Mai  4  2012 util/
My /etc/X11/xorg.conf.d/10-fonts file:
Code:
pedro@slack:~$ cat /etc/X11/xorg.conf.d/10-fonts
# Let X.Org know about the custom font directories
Section "Files"
    FontPath    "/usr/share/fonts/75dpi:unscaled"
    FontPath    "/usr/share/fonts/100dpi:unscaled"
    FontPath    "/usr/share/fonts/BASE"
    FontPath    "/usr/share/fonts/cyrillic"
    FontPath    "/usr/share/fonts/EAST_ASIA"
    FontPath    "/usr/share/fonts/encodings"
    FontPath    "/usr/share/fonts/local"
    FontPath    "/usr/share/fonts/MIDDLE_ASIA"
    FontPath    "/usr/share/fonts/misc:unscaled"
    FontPath    "/usr/share/fonts/OTF"
    FontPath    "/usr/share/fonts/Speedo"
    FontPath    "/usr/share/fonts/TERMINUS"
    FontPath    "/usr/share/fonts/TTF"
    FontPath    "/usr/share/fonts/Type1"
    FontPath    "/usr/share/fonts/util"
EndSection
Checking the fontpath:
Code:
 xset q
[...]
Font Path:
/usr/share/fonts/local,/usr/share/fonts/TTF,/usr/share/fonts/OTF,/usr/share/fonts/Type1,/usr/share/fonts/misc,/usr/share/fonts/75dpi/:unscaled,/usr/share/fonts/100dpi/:unscaled,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/cyrillic,built-ins 
[...]

Last edited by moisespedro; 03-08-2014 at 01:00 PM.
 
Old 03-08-2014, 11:43 AM   #2
brebs
Member
 
Registered: May 2013
Posts: 89

Rep: Reputation: Disabled
fontpaths seem outdated, to me. I just compile xorg-server with these options:

Code:
--with-fontrootdir=/usr/share/fonts --with-default-font-path=/usr/share/fonts
And then all subdirs get picked up.
 
Old 03-08-2014, 11:48 AM   #3
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Original Poster
Rep: Reputation: 195Reputation: 195
I am sure there is another way, recompiling the xorg-server just for that seems a bit too much.
 
Old 03-08-2014, 12:02 PM   #4
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Original Poster
Rep: Reputation: 195Reputation: 195
Well, I thought it would be too much but then I thought "why not?" and here I am recompiling it
EDIT: It doesn't compile, any other solution?
EDIT2: just had to run mkfontdir on the directories

Last edited by moisespedro; 03-08-2014 at 01:00 PM.
 
  


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
setting up a custom nameserver WebGraphics Slackware 3 10-02-2007 11:45 PM
Setting a custom command drimades Linux - Kernel 1 11-15-2006 09:04 AM
TightVNC Fontpath error, help please! Terroth Linux - General 4 03-09-2005 11:24 AM
X won't make unix fontpath connection lugoteehalt Linux - Networking 0 05-13-2004 09:50 AM
fontpath in xfs does not match xset checkchan Linux - Newbie 0 07-24-2003 08:35 AM

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

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