v8n22 - fonts in TEXTSW

Daryl Krauter convex!texsun!edsr!houston!dek at uunet.uu.net
Wed Jun 14 23:23:26 AEST 1989


There is a bug in setting the WIN_FONT attribute at create time for a
TEXTSW, but after you create it - you can specify the WIN_FONT for a
TEXTSW during a window_set call as follows:

	textsw = window_create(frame, TEXTSW,
			WIN_ROWS, ATTR_ROW(20),
			WIN_COLUMNS, ATTR_COL(75),
			0);

	window_set(textsw,
		WIN_FONT, pf_open("/usr/lib/fonts/fixedwidthfonts/cour.b.12"),
		0);

Sun knows this as a bug.

	Daryl Krauter
	Electronic Data Systems (EDS)
	(214) 490-2737



More information about the Comp.sys.sun mailing list