[comp.windows.news] cps ps_findfont

Anthony.D.Worrall@reading.ac.uk (Anthony Worrall) (03/06/90)

Category:          x11news
Subcategory:       libcps
Bug/Rfe:           bug
Synopsis:          font names are sent as strings by ps_findfont and ps_fontdef
Severity:          5
Priority:          4
Description:
        The routines ps_findfont and ps_fontdef send the names of the fonts as
postscript strings instead of postscript objects.

Work around:  
	Use pprintf to find and define fonts.

Suggested fix: 
	Edit the file psmacros.cps in $OPENWINHOME/share/src/xnews/lib/NeWS

	    diff psmacros.cps_old psmacros.cps
	    62c62
	    < cdef ps_findfont(string f) f findfont
	    ---
	    > cdef ps_findfont(postscript f) f findfont
	    84c84
	    < cdef ps_DO_finddef(string font,usertoken) font findfont
	    ---
	    > cdef ps_DO_finddef(postscript font,usertoken) font findfont

then do a make install (change XXINSDIRXX to $(OPENWINHOME)).

Called in by:
    Customer:	     
        Company:     University of Reading
        Employee:    Anthony Worrall
        Release:     1.0
        Hardware version: sun3 and sun4
        O/S version: SUNOS 4.0.3