[comp.windows.x] Help needed in loading fonts with XLoadQueryFont

yadav@andromeda.rutgers.edu.rutgers.edu (Ashish Yadav) (06/07/89)

Hi folks,
	My very first basicwin program seems top bomb out at the following
line of code. It does not print the error message and that's why I cant
seem to figure out what is wrong.

	thanks in advance for the suggestions......

							Ash.


#define PRIMARY_FONT "*helv*bold*r*normal*18-180-75-75*"


if ((p_fontstruct = XLoadQueryFont(display,PRIMARY_FONT)) == 0)
        {
                fprintf(stderr,"can't load font : %s\n",PRIMARY_FONT);
                exit(1);
        }

    ____   ____   ____   _____  _____         Ashish Yadav ( President )
   /      /   /  /        /      /            ***************************
  /      /   /  /___     /      /             yadav@andromeda.rutgers.edu      
 /      /   /      /    /      /             ayadav@topaz.rutgers.edu      
/____  /___/  ____/  __/__  __/__            ayadav@draco.BITNET