DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 4th August 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default updating one's font path .. & adding a man to manuals

Hi everyone !

I'm sorry again to ask such a newbie question .. seems everlasting ..
When I install/compile new fonts , there is a post-install message that come afterwards & I seem to always miss the tweak :
Code:
You may wish to update your font path for /usr/local/lib/X11/fonts/ubuntu
so how would I update my font path ?

a similar situation when I install some package and as there is a resulting new man for that package .. I'm asked ro add the related manual to local manuals ..

Last edited by daemonfowl; 4th August 2012 at 01:01 AM. Reason: grammar
Reply With Quote
  #2   (View Single Post)  
Old 4th August 2012
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 534
Thanked 14 Times in 13 Posts
Default

Quote:
so how would I update my font path ?
If X won't find the font path when it boots, you can add it to xorg.conf. But that will only take effect next time you start X. You can also update/manage font paths on-the-fly (meaning, while X is already running, not working on an insect or anything) by using the various fontpath options (fp) of xset(1).
Reply With Quote
  #3   (View Single Post)  
Old 4th August 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default

Hi IdOp ! Thanks , do you mean :
Code:
xset +fp /usr/local/lib/X11/fonts/ubuntu
xset fp rehash
is enough ? No need to go add some line somewhere (xorg.conf .. ) ?

Last edited by daemonfowl; 4th August 2012 at 08:19 PM. Reason: typo
Reply With Quote
  #4   (View Single Post)  
Old 4th August 2012
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 534
Thanked 14 Times in 13 Posts
Default

I think that would about do it, however:

1) If you are adding an entirely new directory, I'm not sure if the rehash is needed or not. It wouldn't hurt, of course, but possibly X will read a new directory anyway ... I don't know how that logic is handled. You could experiment and see.

2) If you do use xset, it will only stay in effect for the current X session. If you leave X and later come back, the changes will be gone. To handle that you could put the FontPaths in xorg.conf if you have one. If you don't want an xorg.conf, however, then you could put the xset statements into your .xinitrc file so they'll execute every time you startx.
Reply With Quote
  #5   (View Single Post)  
Old 5th August 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default

Thanks you IdOp !
I never had to configure X on this box so I don't have any resulting xorg.conf file .. the .xinitrc way seems working as I can see newly installed fonts in firefox' fonts preferences .. :-)
Reply With Quote
  #6   (View Single Post)  
Old 5th August 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default

If I put those xset statements in /etc/X11/xinit/xinitrc instead of my ./xinitrc would it be adequate ?
( & I still don't know how to make use of xset/mkfontdir/ .. etc in situations like when I wanna add some foreign fonts that are not included in ports .. )
Reply With Quote
  #7   (View Single Post)  
Old 5th August 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,432
Thanked 214 Times in 189 Posts
Default

Quote:
If I put those xset statements in /etc/X11/xinit/xinitrc instead of my ./xinitrc would it be adequate ?
When you modify a system supplied configuration file, you must manage upgrades to it via sysmerge(8).
Reply With Quote
  #8   (View Single Post)  
Old 5th August 2012
shep shep is offline
ISO Quartermaster
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 546
Thanked 9 Times in 9 Posts
Default

Most fonts are automatically updated. You can check in an application that allows you to select fonts like firefox > edit > preferences. Alternatively you can see the loaded fonts in your /var/log/Xorg.0.log

If your newly installed fonts do not show up you can make an entry in /etc/X11/xorg.conf.d as described here

Be advised that the font paths in OpenBSD are different - copying and pasting the entry from the Slitaz Linux page will not work.

Last edited by shep; 5th August 2012 at 11:50 PM.
Reply With Quote
  #9   (View Single Post)  
Old 8th August 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default

Thanks jggimi ! Thanks shep !
Yes I can see newly installed fonts ..
lines from a useful link :
http://www.openbsd.org/faq/truetype.html

Quote:
Fonts installed as a package from the ports collection are registered automatically to the fontconfig system. Fontconfig uses the file /etc/fonts/fonts.conf for its main system-wide configuration, but since this file will be replaced on subsequent X upgrades, /etc/fonts/local.conf should be used instead to manage system-wide changes. Fontconfig searches for fonts in all sub-directories of the directories listed in /etc/fonts/fonts.conf. So there's no need to edit this file when new fonts are added in those hierarchies.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi-Path or Route-To? SlyM OpenBSD General 21 10th November 2010 07:22 PM
add to path carpman FreeBSD General 4 19th August 2010 06:13 AM
font-misc-ethiopic & font-misc-meltho Beastie General software and network 0 27th February 2009 11:21 AM


All times are GMT. The time now is 04:32 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick