Changeset 423
- Timestamp:
- Dec 4, 2009 5:05:55 PM (14 years ago)
- 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 131 131 in a subdirectory of the GSAS files. 132 132 133 <DT><TT>expgui(coordfont)</TT><DD>134 Sets the font used for the coordinates scroll box135 136 <DT><TT>expgui(histfont)</TT><DD>137 Sets the font used for the histogram scroll box138 139 133 <DT><TT>expgui(bkgcolor1)</TT><DD> 140 134 Sets the background color for the bottom box on the phase pane. … … 165 159 where 0 is off and 1 is on. When archive is on, a copy of the .EXP file 166 160 is saved before a new version of the file is saved and before EXPEDT is run. 161 162 <DT><TT>expgui(font)</TT><DD> 163 This determines the base font used in the programs. You conceivably 164 could want to use an integer value not present in the 165 "Options/Screen Font" menu command. 167 166 168 167 <DT><TT>expgui(asorttype)</TT><DD> … … 565 564 </H2> 566 565 <B>Question: </B> 567 <I>I use a 19" screen with a resolution 1280x1024. With this resolution, the568 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 567 menu option. Is there a way to select different font size(s)/families? 569 568 </I> 570 569 <UL> … … 576 575 12 point for the histogram and atom lists. 577 576 <P> 578 This code changes those fonts to 18 and 16 point, respectively. 577 If you add a command like this: 579 578 <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-*" 579 option add *Coord.Listbox.Font "Courier -18 bold italic" 20 589 580 </PRE></UL> 590 581 <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> 582 you will override the menu command and force the atom coordinates 583 to 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 585 priority, which overrides the priority value of 10 in the 586 standard 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 597 the "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 600 mono-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 603 font is required 604 </DL></DL> 605 605 It should be noted that the appearance of fonts depends on many factors -- 606 606 the 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. 607 eyes, so it is wise to experiment with different values. 609 608 </UL> 610 609 <hr>
Note: See TracChangeset
for help on using the changeset viewer.