Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Openbox fonts
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
RangerDude
Guru
Guru


Joined: 19 Apr 2003
Posts: 301

PostPosted: Wed May 14, 2003 7:33 pm    Post subject: Openbox fonts Reply with quote

Hey-

No matter what I do, I don't seem to be able to change the fonts in openbox. Even the default selection styles all have the same fonts.
What am I missing?


Last edited by RangerDude on Thu May 15, 2003 11:37 am; edited 1 time in total
Back to top
View user's profile Send private message
curtis119
Bodhisattva
Bodhisattva


Joined: 10 Mar 2003
Posts: 2160
Location: Toledo, Ohio,USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.

PostPosted: Wed May 14, 2003 10:18 pm    Post subject: Reply with quote

find the style file for that theme, usually in /usr/share/commonbox/styles

If there is not a font entry then you can add one:

to use X fonts try...
*Font: -*-lucidatypewriter-medium-r-*-*-*-100-*-*-*-*-*-*

for XFT fonts try:
*xft.font: Verdana
*xft.size: 8
menu.*.xft.size: 10

you can also set this globally in all themes by adding these commands to your rc file ~/.openbox/rc file.

or you can just use stylebox which is a nifty little style editor that can be found here(it's not in Portage):
http://katanalynx.dyndns.org/~ajar/code/#stylebox

or use bbconf (which is in Portage). Just make sure to make this link:
ln -s ~/.openbox/rc ~/.blackboxrc
The only draw back to this option is that Openbox and Blackbox will share the same rc file if you use them both.
_________________
Gentoo: it's like wiping your ass with silk.
Back to top
View user's profile Send private message
RangerDude
Guru
Guru


Joined: 19 Apr 2003
Posts: 301

PostPosted: Thu May 15, 2003 3:27 pm    Post subject: Reply with quote

Okay- I still have trouble.
I have disabled styles and my only goal is to change the font on the rc file.
My rc file

Code:

session.screen0.toolbar.onTop:   False
session.screen0.toolbar.autoHide:   False
session.screen0.toolbar.widthPercent:   66
session.screen0.toolbar.placement:   BottomCenter
session.screen0.slit.onTop:   False
session.screen0.slit.autoHide:   False
session.screen0.slit.placement:   CenterRight
session.screen0.slit.direction:   Vertical
session.screen0.edgeSnapThreshold:   4
session.screen0.windowToEdgeSnap:   Resistance
session.screen0.windowPlacement:   RowSmartPlacement
session.screen0.focusNewWindows:   False
session.screen0.windowToWindowSnap:   Resistance
session.screen0.rowPlacementDirection:   LeftToRight
session.screen0.dropShadowFonts:   False
session.screen0.antialiasFonts:   True
session.screen0.windowCornerSnap:   True
session.screen0.strftimeFormat:   %I:%M %p
session.screen0.hideToolbar:   False
session.screen0.workspaces:   3
session.screen0.disableBindingsWithScrollLock:   False
session.screen0.rootScrollDirection:   Normal
session.screen0.placementIgnoreShaded:   True
session.screen0.imageDither:   True
session.screen0.workspaceNames:   Primary,Secondary,Auxiliary
session.screen0.rootMenuButton:   Right
session.screen0.focusLastWindow:   False
session.screen0.opaqueMove:   False
session.screen0.resistanceSize:   18
session.screen0.placementIgnoreMaximized:   True
session.screen0.fullMaximization:   False
session.screen0.colPlacementDirection:   TopToBottom
session.screen0.focusModel:   SloppyFocus
session.screen0.edgeSnapOffset:   0
session.screen0.workspaceMenuButton:   Middle
session.screen0.resizeZones:   4
session.screen0.workspaceWarping:   True
session.xineramaSupport.windowPlacement:   False
session.xineramaSupport.windowMaximizing:   False
session.xineramaSupport.windowSnapping:   False
session.colorsPerChannel:   4
session.autoRaiseDelay:   400
session.cacheMax:   200
session.styleFile:   /usr/share/commonbox/styles/Fury-NG
session.modifierMask:   Mod1
session.doubleClickInterval:   250
session.titlebarLayout:   ILMC
session.cacheLife:   5
*xft.font:   Verdana
*xft.size:   25
menu*xft.size:   25

Note that the size 25 is just so I'm sure I will notice when the fonts work. :roll:
All I get with this rc file is that damn standard looking arial font. :cry:
I try running X with xfs started and stopped. Is it supposed to run anyway?
Back to top
View user's profile Send private message
curtis119
Bodhisattva
Bodhisattva


Joined: 10 Mar 2003
Posts: 2160
Location: Toledo, Ohio,USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.

PostPosted: Thu May 15, 2003 9:47 pm    Post subject: Reply with quote

Sorry that didn't work. I got that information from the openbox documentation. Apparently this is for older versions of Xfree or something. Anyway, I looked into it further and found that openbox follows the blackbox standard for fonts so try this instead.

Add the following entries in your style file:
/usr/share/commonbox/styles/name_of_style. I have only listed the relevant font parts:


toolbar.font: -*-clean-*-*-*-*-13-*-*-*-*-*-*-*
menu.frame.font: -*-clean-*-*-*-*-13-*-*-*-*-*-*-*
menu.title.font: -*-clean-*-*-*-*-13-*-*-*-*-*-*-*
window.label.focus.font: -*-clean-*-*-*-*-13-*-*-*-*-*-*-*
window.font: -*-clean-*-*-*-*-13-*-*-*-*-*-*-*


I tried this in my ~/.blackboxrc file and it overrides all the style files.
You should be able to put these entries in your ~/.openbox/rc file in order to override all the individual style settings.
All the fonts that work with blackbox/openbox can be seen with the program "xfontsel". It works perfect on blackbox.
I hope this is the CORRECT answer this time.
_________________
Gentoo: it's like wiping your ass with silk.
Back to top
View user's profile Send private message
RangerDude
Guru
Guru


Joined: 19 Apr 2003
Posts: 301

PostPosted: Fri May 16, 2003 10:09 pm    Post subject: Reply with quote

Hey Curtis,
Thanks a lot for your help. :)
I now managed to get it working.
I got confused with xfontsel, I didnt know you could actually use that long output line in a style file.
I found bbconf to be a nice tool, exept that its a bit buggy when it comes to fonts. I tried to select fonts in that prog but they didnt work.
The most important is that its working and I know how.

Keep cool. 8)


Last edited by RangerDude on Sat May 17, 2003 7:26 am; edited 2 times in total
Back to top
View user's profile Send private message
curtis119
Bodhisattva
Bodhisattva


Joined: 10 Mar 2003
Posts: 2160
Location: Toledo, Ohio,USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.

PostPosted: Fri May 16, 2003 11:11 pm    Post subject: Reply with quote

cool, glad I could help. Even if it took a few tries.
_________________
Gentoo: it's like wiping your ass with silk.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum