On Sun, 10 Feb 2002, Peter Drummond wrote:

> So the problem is specifically Xforms. I have not been able
> to fix this in the preferences, by trying other fonts for
> popups and menus - in fact, this tends to make all menus
> go blank until you delete .lyx.

I have been fiddling with these fonts for the last week and haven't
experienced any problem (in either 1.1.6 or 1.2.0cvs).  Go for a font
that is well shaped and should be more easily distinquished like
Verdana or Helvetica.

The attached patch makes the menu font as large as possible within the
small the small bounds of the default menu height.  This should look
like almost double the height of your current menu.  As a bonus all
the choice boxes in the dialogs are also heaps bigger -- however these
changes don't affect the fonts in the dialogs.  That is going to be a
really tough problem with XForms I think.  XForms does have a variable
size font setting but I haven't tested to see what effect that has.

The changes in the patch could be extended into a Preferences setting
but would also require a rewrite of the way the menu bar is draw in
LyX.  Far too much stuff is hard-coded (like sizes and placement) and
other parts of the code also rely upon these assumptions... bad bad
bad.

This may at least help a bit.

Allan. (ARRae)
Index: src/lyx_gui.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/lyx_gui.C,v
retrieving revision 1.73.2.2
diff -u -p -r1.73.2.2 lyx_gui.C
--- src/lyx_gui.C       2001/08/31 09:38:08     1.73.2.2
+++ src/lyx_gui.C       2002/02/12 05:56:24
@@ -235,7 +235,7 @@ void LyXGUI::init()
        // Moved from ::LyXGUI to ::init to allow popup font customization 
        // (petr 120997).
        fl_setpup_fontstyle(FL_NORMAL_STYLE);
-       fl_setpup_fontsize(FL_NORMAL_SIZE);
+       fl_setpup_fontsize(FL_LARGE_SIZE);
        fl_setpup_color(FL_MCOL, FL_BLACK);
        fl_set_goodies_font(FL_NORMAL_STYLE, FL_NORMAL_SIZE);
 
Index: src/frontends/xforms/Menubar_pimpl.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/Menubar_pimpl.C,v
retrieving revision 1.24
diff -u -p -r1.24 Menubar_pimpl.C
--- src/frontends/xforms/Menubar_pimpl.C        2001/01/09 13:58:48     1.24
+++ src/frontends/xforms/Menubar_pimpl.C        2002/02/12 05:56:24
@@ -36,7 +36,7 @@ extern kb_keymap * toplevel_keymap;
 extern LyXAction lyxaction;
 
 // Some constants
-static const int MENU_LABEL_SIZE = FL_NORMAL_SIZE;
+static const int MENU_LABEL_SIZE = FL_LARGE_SIZE;
 static const int mheight = 30;
 static const int mbheight= 22;
 // where to place the menubar?

Reply via email to