[comp.windows.x] bezier curves

creubank@MEDIA-LAB.MEDIA.MIT.EDU (Curtis R Eubanks) (02/16/89)

>I'm interested in outputting bezier curves in X for part of my thesis.
>I thought I would have to do all of the coding myself, but I noticed the
>following file:  /usr/include/X11/bezier.h -- does X support bezier splines?
>How can I find out more about this?

I sent this to olc and was pointed here.  Does the current X (X11R3)
support this?  I am writing a chinese text/character/stroke editor
using X for my undergraduate thesis and need splines for the strokes.
I am willing to write the bezier routines, but if they already exist
I'd like to know.  Another question: X supports 16-bit fonts (i.e.
each character is indexed by two bytes).  Does this mean I can have a
font with 65536 different characters?  I am not sure whether I should
define my characters as splines or as a bitmapped Xfont for screen
display.  Splines would allow resizing, but might be just too slow.
I WILL be using the splines for my postscript output, anyway.  It
seems like a lot of work to build an Xfont from scratch, though.  Of
course, I would not actually hand paint the bitmaps.  They would be
generated from a spline description.  Any ideas?

				-creubank

creubank@ATHENA.MIT.EDU (02/17/89)

(This letter got bounced when I sent it to xpert from
media-lab.media.mit.edu, so I'm trying again from athena.)
>I'm interested in outputting bezier curves in X for part of my thesis.
>I thought I would have to do all of the coding myself, but I noticed the
>following file:  /usr/include/X11/bezier.h -- does X support bezier splines?
>How can I find out more about this?

I sent this to olc and was pointed here.  Does the current X (X11R3)
support this?  I am writing a chinese text/character/stroke editor
using X for my undergraduate thesis and need splines for the strokes.
I am willing to write the bezier routines, but if they already exist
I'd like to know.  Another question: X supports 16-bit fonts (i.e.
each character is indexed by two bytes).  Does this mean I can have a
font with 65536 different characters?  I am not sure whether I should
define my characters as splines or as a bitmapped Xfont for screen
display.  Splines would allow resizing, but might be just too slow.
I WILL be using the splines for my postscript output, anyway.  It
seems like a lot of work to build an Xfont from scratch, though.  Of
course, I would not actually hand paint the bitmaps.  They would be
generated from a spline description.  Any ideas?

                                -creubank

swick@ATHENA.MIT.EDU (Ralph R Swick) (02/17/89)

bezier.h is part of an example protocol extension done by
Greg Cockroft at the University of Michigan CITI.  It is
not part of the X standard (nor is it in the servers you'll
find installed on the Athena workstations), but you could
build your own server using it.

You might also be able to use the XDraw() routine in Xlib,
which computes (unspecified) splines on the client side
and does not require any protocol extensions.