From 17b2d57717504e2018d3ba23e0deffe55fc6d084 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 4 Mar 2007 07:18:04 +0000 Subject: Fonts are now going to be configured in the rc.xml file. The format is such as ... arial,sans 8 bold italic yes 1 64 Valid place="" are ActiveWindow, InactiveWindow, MenuTitle, and MenuItem. Only valid weight is "bold" Valid slants are "italic" and "oblique" shadowTint is a value between -100 and 100 size is the font size in points. pixelsize could possibly be added in the form of 8px, but it's not right now. the name can contain multiple families and they will all be used to match characters You can omit any fields and get the default for it. You can omit naming a font for a place="" and get the default font for it. This is completely replacing theme-specified fonts, for better or for worse. Font shadowing may go back into the theme at some point, instead of in the rc.xml. --- openbox/openbox.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'openbox/openbox.c') diff --git a/openbox/openbox.c b/openbox/openbox.c index 087efd6b..e3309f00 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -244,7 +244,12 @@ gint main(gint argc, gchar **argv) /* load the theme specified in the rc file */ { RrTheme *theme; - if ((theme = RrThemeNew(ob_rr_inst, config_theme))) { + if ((theme = RrThemeNew(ob_rr_inst, config_theme, + config_font_activewindow, + config_font_inactivewindow, + config_font_menutitle, + config_font_menuitem))) + { RrThemeFree(ob_rr_theme); ob_rr_theme = theme; } -- cgit v1.2.3