[comp.windows.x] X11 - a Font question

dymm@b.cs.wvu.wvnet.edu (David Dymm) (12/06/88)

I am using the X11 R2 toolkit for most of my interface
development and only going down into Xlib when necessary.

Assume that my application just uses the default font loaded
by the server -- thus I have not explicitly laoded a font.
How can I query the X11 system to determine the
"current" fontin the system???


David Dymm			Software Engineer

                            *************************************
                            *  Violence is the last refuge of   *
                            *  the incompetent.                 *
                            *                      Hardin       *
                            *************************************

USMAIL: Bell Atlantic Knowledge Systems,
        145 Fayette Street, Morgantown, WV 26505
PHONE:	304 291-9898 (8:30-4:30 EST)
USENET:  {allegra,bellcore, cadre,idis,psuvax1}!pitt!wvucsb!dymm
INTERNET: dymm@b.cs.wvu.wvnet.edu

rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (12/07/88)

    How can I query the X11 system to determine the
    "current" fontin the system???

You don't say exactly what you mean by "query".  If you
want font metrics, you can use XQueryFont, passing it
a GC (that contains the default font).  The protocol does
not provide a means of getting the name of the default font.