Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!ADS.COM!jordan From: jordan@ADS.COM (Jordan Hayes) Newsgroups: comp.windows.x Subject: Re: neophyte questions on Xt and fonts Message-ID: <8810191750.AA26420@zooks.ads.com> Date: 19 Oct 88 17:50:40 GMT References: <10320@elroy.Jpl.Nasa.Gov> Sender: daemon@bloom-beacon.MIT.EDU Organization: Advanced Decision Systems, Mt. View, CA (415) 960-7300 Lines: 17 If I create a Text Widget, how do I specify the font? Here's what I do (ignoring error checking for clarity :-): int n; Arg args[10]; Widget root, form, label; XFontStruct *fi; /* assume you have a form already made (or a box or ...) */ n = 0; fi = XLoadQueryFont(XtDisplay(root), "vctl-25"); XtSetArg(args[n], XtNfont, (XtArgVal)fi); n++; XtCreateManagedWidget("A Label", labelWidgetClass, form, args, n); /jordan