LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 07-18-2017, 05:14 AM   #1
jonny789
LQ Newbie
 
Registered: Jul 2017
Posts: 2

Rep: Reputation: Disabled
How to use custom fonts in fluxbox


Hi all..

I have just started learning theming of fluxbox. I have some ttf-font files. I want to use them in fluxbox theme. Tutorials I found on net use inbuilt fonts.

Where do I need to put my .ttf file to use in fluxbox ? Where is the global location for fonts that is used by all the fluxbox themes ?

I am running Stretch.
Here is my fluxbox info ::
Code:
Fluxbox version: 1.3.5
GIT Revision: this_is_tar_ball_build
Compiled: Feb 25 2014 03:56:46
Compiler: GCC
Compiler version: 6.3.0 20170221
Defaults:
    menu: /etc/X11/fluxbox/fluxbox.menu-user
   style: /usr/share/fluxbox/styles//Squared_for_Debian
    keys: /etc/X11/fluxbox/keys
    init: /etc/X11/fluxbox/init
     nls: /usr/share/fluxbox/nls

Compiled options (- => disabled):
BIDI
-DEBUG
EWMH
IMLIB2
NLS
REMEMBER
RENDER
SHAPE
SLIT
SYSTEMTRAY
TOOLBAR
RANDR1.2
XFT
XINERAMA
XMB
XPM

Last edited by jonny789; 07-18-2017 at 07:02 AM.
 
Old 07-18-2017, 05:11 PM   #2
Myk267
Member
 
Registered: Apr 2012
Location: California
Posts: 422
Blog Entries: 16

Rep: Reputation: Disabled
You can likely place them somewhere under /usr/share/fonts/, but placing "outside" files into global filesystem locations might not be a good idea in the long run. Maybe placing them in your home directory might be smarter.

I used to drop my downloaded fonts into ~/.fonts/ but that seems to be deprecated in favor of ~/.local/share/fonts now. I would still try the first one, first. Afterwards, run fc-cache to reset the font database, and you should be ready to add your new fonts into your fluxbox config.
 
1 members found this post helpful.
Old 07-20-2017, 01:58 PM   #3
jonny789
LQ Newbie
 
Registered: Jul 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
Cool

Quote:
Originally Posted by Myk267 View Post
You can likely place them somewhere under /usr/share/fonts/, but placing "outside" files into global filesystem locations might not be a good idea in the long run. Maybe placing them in your home directory might be smarter.

I used to drop my downloaded fonts into ~/.fonts/ but that seems to be deprecated in favor of ~/.local/share/fonts now. I would still try the first one, first. Afterwards, run fc-cache to reset the font database, and you should be ready to add your new fonts into your fluxbox config.
Thanks. It worked.

I copied font ttf file to ~./font directory. Ran
Code:
fc-cache ; fc-list
fc-list showed all the installed fonts with their location and name.

Now, the problem is with the font name having spaces. Those are not working for me. I have tried with enclosing them in quotes and using backslash.
How can I use those fonts ?

Can fluxbox theme load all sort of ttf fonts, as many large size(~500kB) font files are not working for me ?
 
  


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
Fluxbox Fonts Tommo Linux - Desktop 2 04-14-2008 12:17 PM
custom cursor change for fluxbox Old_Fogie Slackware 4 10-01-2007 04:00 PM
Custom Fluxbox Menu TomalakBORG Linux - Software 3 02-27-2005 06:53 PM
Fonts in Fluxbox Ephracis Linux - Software 1 10-15-2004 04:14 PM
fonts in fluxbox Vincent Slackware 2 05-14-2004 05:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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