[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

1112.0. "List of font sizes?" by MARX::TSOI () Fri Jul 14 1989 20:04

    I can't seem to find the relevant information anywhere.  If this
    question has been asked elsewhere, would someone kindly give me
    a pointer to it?
    
    OK, the million dollar question is:  I want to change the font size
    for a standard x-window application (it was hard-coded in in .h
    file).  So where can I find a list of font sizes (i.e. 18X20, etc)
    
    Thanks.
    
    Stella

T.RTitleUserPersonal
Name
DateLines
1112.1SDSVAX::SWEENEYHoney, I iconified the kidsMon Jul 17 1989 10:3513
    If a font size is hard-coded in a .h file then there is no way to
    change it: it is "hard coded".
    
    Typically applications use UIL files or resource default files to
    specify fonts.  Some applications I have written have a menu to select
    the font size to be used at run time.
    
    If you have access to sources and can change the .h file, then the list
    of fonts in DECwindows V1 is to be found in Appendix D of the VMS
    DECwindows Guide to Xlib Programming, both MIT binding and VAX binding.
    
    Various programs in the DW_EXAMPLES conference list fonts as well.

1112.2translation?MARX::TSOIMon Jul 17 1989 14:4813
    I do have the source code to the application, and I got the list
    of fonts in the format:
    
    -adobe-itc avant garde gothic-book-r-normal--25-180-100-100-p-138-iso8859-1
                                                                              
    What I don't understand is how do I find the font size in the
    form of "18X20", for example?  In the .h file, it was specified:
    	#define DFL_FONT "18X20" /* default font */
    
    Thanks.  As you can see, I am very new to Xwindows...
    	
    Stella

1112.318x20 is not a valid font nameGVRIEL::SCHOELLERWho's on first?Mon Jul 17 1989 15:2916
Stella,

Several old applications seem to have fonts specified as you describe.  This
is not compatible with the X11R3 naming scheme.  Therefore, these applications
give their little warnings and then go off and use whatever font is in the GC.

Applications which wish to hard code fonts should try to specify the minimum
necessary (point size, weight, spacing and maybe one or two more) and then
pick among the fonts which satisfy on the server.  Use XLookupFont to do this.

Unfortunately, there are many applications out there which either hard code
old font specifications or code for a very specific font which is not
accessible on all servers.

Dick

1112.4thanksMARX::TSOIMon Jul 17 1989 16:094
    Thanks.  I think I finally see the light.
    
    Stella