[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

1793.0. "How to find default font" by TOOLEY::B_WACKER () Mon Nov 27 1989 13:08

A customer would like to find out what the font is in the default GC 
so he can get its characteristics for centering, etc.  Is there a way 
to do this?  He'd rather not specify his own font.
T.RTitleUserPersonal
Name
DateLines
1793.1DECWIN::FISHERBurns Fisher 381-1466, ZKO3-4/W23Mon Nov 27 1989 13:245
The font name is "fixed" by default.  It is a pretty junk font, but you should
be able to do anything with it (inquiring characteristics, etc) that you can
do with any font.

Burns
1793.2TRNSAM::HOLTRobert Holt, ISV Atelier WestSun Mar 11 1990 15:0813
    
     re .0
    
    first:
          XCreateGC
    
     then:
          gcontext = XGContextFromGC
          font_struct = XQueryFont(display,(XID)gcontext);
    
     The font id is in:
          font_struct.fid
    
1793.3TRNSAM::HOLTRobert Holt, ISV Atelier WestSun Mar 11 1990 15:0913
    
     re .0
    
    first:
          gc = XCreateGC(....);
    
     then:
          gcontext = XGContextFromGC(gc);
          font_struct = XQueryFont(display,(XID)gcontext);
    
     The font id is in:
          font_struct.fid