Changeset 423


Ignore:
Timestamp:
Dec 4, 2009 5:05:55 PM (14 years ago)
Author:
toby
Message:

# on 2001/09/04 22:13:06, toby did:
describe how to override the default font assignments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/expgui_cfg.html

    • Property rcs:date changed from 2001/08/24 18:56:53 to 2001/09/04 22:13:06
    • Property rcs:lines changed from +5 -124 to +33 -34
    • Property rcs:rev changed from 1.18 to 1.19
    r410 r423  
    131131in a subdirectory of the GSAS files.
    132132
    133 <DT><TT>expgui(coordfont)</TT><DD>
    134 Sets the font used for the coordinates scroll box
    135 
    136 <DT><TT>expgui(histfont)</TT><DD>
    137 Sets the font used for the histogram scroll box
    138 
    139133<DT><TT>expgui(bkgcolor1)</TT><DD>
    140134Sets the background color for the bottom box on the phase pane.
     
    165159where 0 is off and 1 is on. When archive is on, a copy of the .EXP file
    166160is saved before a new version of the file is saved and before EXPEDT is run.
     161
     162<DT><TT>expgui(font)</TT><DD>
     163This determines the base font used in the programs. You conceivably
     164could want to use an integer value not present in the
     165"Options/Screen Font" menu command.
    167166
    168167<DT><TT>expgui(asorttype)</TT><DD>
     
    565564</H2>
    566565<B>Question: </B>
    567 <I>I use a 19" screen with a resolution 1280x1024. With this resolution, the
    568 fonts are really small in the GUI. Is a way exist to increase the font size?
     566<I>I am not happy with the fonts available via the Option/Screen Font
     567menu option. Is there a way to select different font size(s)/families?
    569568</I>
    570569<UL>
     
    57657512 point for the histogram and atom lists.
    577576<P>
    578 This code changes those fonts to 18 and 16 point, respectively.
     577If you add a command like this:
    579578<UL><PRE>
    580 option add *Font            -*-helvetica-medium-r-normal-*-18-*-*-*-*-*-*-*
    581 option add *font            -*-helvetica-medium-r-normal-*-18-*-*-*-*-*-*-*
    582 option add *Menu.font       -*-helvetica-bold-r-normal-*-18-*-*-*-*-*-*-*
    583 option add *Menubutton.font -*-helvetica-bold-r-normal-*-18-*-*-*-*-*-*-*
    584 option add *Label.font      -*-helvetica-bold-r-normal-*-18-*-*-*-*-*-*-*
    585 option add *Scale.font      -*-helvetica-bold-o-normal-*-18-*-*-*-*-*-*-*
    586 option add *TitleFrame.font -*-helvetica-bold-o-normal-*-18-*-*-*-*-*-*-*
    587 set expgui(coordfont) "-*-courier-bold-r-normal--16-*"
    588 set expgui(histfont) "-*-courier-bold-r-normal--16-*"
     579option add *Coord.Listbox.Font "Courier -18 bold italic" 20
    589580</PRE></UL>
    590581<P>
    591 A slightly different and perhaps cleaner approach is to specify the font
    592 sizes in pixels.
    593 The code below uses font sizes of 18 and 16 pixels, respectively.
    594 <UL><PRE>
    595 option add *Font            "Helvetica -18"
    596 option add *font            "Helvetica -18"
    597 option add *Menu.font       "Helvetica -18 bold"
    598 option add *Menubutton.font "Helvetica -18 bold"
    599 option add *Label.font      "Helvetica -18 bold"
    600 option add *Scale.font      "Helvetica -18 bold italic"
    601 option add *TitleFrame.font "Helvetica -18 bold italic"
    602 set expgui(coordfont) "Courier -16 bold"
    603 set expgui(histfont)  "Courier -16 bold"
    604 </PRE></UL>
     582you will override the menu command and force the atom coordinates
     583to be displayed at 18 points in a bold & italicied Courier font.
     584(See the Tk documentation if this is not clear). The value 20 is a
     585priority, which overrides the priority value of 10 in the
     586standard initialization. Here are the options that can be specified:
     587<DL><DL>
     588<DT><TT>*Graph*Font</TT><DD>Used for Graph labels
     589<DT><TT>*Graph.font</TT><DD>Used for Graph title
     590<DT><TT>*Canvas.font</TT><DD>Used for notebook tabs
     591<DT><TT>*Button.font</TT><DD>Used on most buttons
     592<DT><TT>*Menu.font</TT><DD>Used on menu commands
     593<DT><TT>*Menubutton.font</TT><DD>Used on "menu buttons" (e.g. Print options)
     594<DT><TT>*Label.font</TT><DD>Used on labels
     595<DT><TT>*Scale.font</TT><DD>Used on sliders (e.g. Marquardt damping)
     596<DT><TT>*TitleFrame.font</TT><DD>Used on title frames (e.g. box labels such as
     597the "Diffractometer Constants" label
     598<DT><TT>*SmallFont.Button.font</TT><DD>Used for buttons with smaller letters
     599<DT><TT>*Coord.Listbox.font</TT><DD>Used for coordinate listings, best as a
     600mono-spaced font, such as Courier
     601<DT><TT>*HistList.Listbox.font</TT><DD>Used for histogram listings
     602<DT><TT>*MonoSpc.Label.font</TT><DD>Used in other places where a mono-spaced
     603font is required
     604</DL></DL>
    605605It should be noted that the appearance of fonts depends on many factors --
    606606the fonts installed on your computer, the screen size and resolution and your
    607 eyes, so it is wise to experiment with different values in the above
    608 examples.
     607eyes, so it is wise to experiment with different values.
    609608</UL>
    610609<hr>
Note: See TracChangeset for help on using the changeset viewer.