Re: XForms: Printing and Fonts

From: James D. Stegeman (stegeman@grc.nasa.gov)
Date: Mon Jan 10 2000 - 09:13:51 EST

  • Next message: Steve Lamont: "Re: XForms: Printing and Fonts"

    # To subscribers of the xforms list from "James D. Stegeman" <stegeman@grc.nasa.gov> :

    Steve,

    If you could "cough" up the routines for printing I would greatly
    appreciate it. And thanks for the tip on the Xlib calls. I don't speak
    X very well (as you can probably tell).

    Thanks alot,

    Jim Stegeman

    Steve Lamont wrote:
    >
    > # To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :
    >
    > > 1. Printing. ...
    > > ... My question is then: What is the best way to
    > > generate a file (postscript, hopefully) which can be saved or sent
    > > directly to the printer? Is there a device context in Xforms that I've
    > > missed which can do this? Or do I have to learn to speak postscript?
    >
    > fl_object_ps_dump() may be of use.
    >
    > I've also written some functions which will produce Postscript graphs
    > from xyplot-like input data. There are a couple of things that might
    > be needed to generalize them completely, but if you want them as a
    > starting point, you're welcome to them. Say the word and I'll
    > scrounge them up.
    >
    > > 2. Fonts. ...
    > > ... What
    > > we would like to do is have the fonts automatically be adjusted for the
    > > given window/screen size. Is this possible using Xforms? Also, would
    > > that technique follow over into window resizing? (We've got an
    > > algorithm which sizes the fonts by a percentage based on screen size,
    > > but we want to automate this for maintainence when we get new devices).
    >
    > You can get the screen size with some Xlib macro calls --
    > WidthOfScreen() and HeightOfScreen() -- they willl cough up the
    > resolution of the screen.
    >
    > This should give you a good start.
    >
    > spl
    > _________________________________________________
    > To unsubscribe, send the message "unsubscribe" to
    > xforms-request@bob.usuhs.mil or see
    > http://bob.usuhs.mil/mailserv/xforms.html
    > XForms Home Page: http://world.std.com/~xforms
    > List Archive: http://bob.usuhs.mil/mailserv/list-archives/

    -- 
    -------------------------------------------------------------------------------
    

    James D. Stegeman | This space for rent: NASA Glenn Research Center | Lewis Field | 21000 Brookpark Rd. MS 142-4 | Phone: 1-216-433-3389 Cleveland, Ohio 44135 | Fax: 1-216-433-8000 | e-mail: stegeman@grc.nasa.gov ------------------------------------------------------------------------------- _________________________________________________ To unsubscribe, send the message "unsubscribe" to xforms-request@bob.usuhs.mil or see http://bob.usuhs.mil/mailserv/xforms.html XForms Home Page: http://world.std.com/~xforms List Archive: http://bob.usuhs.mil/mailserv/list-archives/



    This archive was generated by hypermail 2b29 : Mon Jan 10 2000 - 09:23:55 EST