View previous topic :: View next topic |
Author |
Message |
RangerDude Guru
Joined: 19 Apr 2003 Posts: 301
|
Posted: Wed May 14, 2003 7:33 pm Post subject: Openbox fonts |
|
|
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 |
|
|
curtis119 Bodhisattva
Joined: 10 Mar 2003 Posts: 2160 Location: Toledo, Ohio,USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.
|
Posted: Wed May 14, 2003 10:18 pm Post subject: |
|
|
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 |
|
|
RangerDude Guru
Joined: 19 Apr 2003 Posts: 301
|
Posted: Thu May 15, 2003 3:27 pm Post subject: |
|
|
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.
All I get with this rc file is that damn standard looking arial font.
I try running X with xfs started and stopped. Is it supposed to run anyway? |
|
Back to top |
|
|
curtis119 Bodhisattva
Joined: 10 Mar 2003 Posts: 2160 Location: Toledo, Ohio,USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.
|
Posted: Thu May 15, 2003 9:47 pm Post subject: |
|
|
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 |
|
|
RangerDude Guru
Joined: 19 Apr 2003 Posts: 301
|
Posted: Fri May 16, 2003 10:09 pm Post subject: |
|
|
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.
Last edited by RangerDude on Sat May 17, 2003 7:26 am; edited 2 times in total |
|
Back to top |
|
|
curtis119 Bodhisattva
Joined: 10 Mar 2003 Posts: 2160 Location: Toledo, Ohio,USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.
|
Posted: Fri May 16, 2003 11:11 pm Post subject: |
|
|
cool, glad I could help. Even if it took a few tries. _________________ Gentoo: it's like wiping your ass with silk. |
|
Back to top |
|
|
|
|
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
|
|