On Fri, 29 Oct 1999, Cyrille Chepelov (home) wrote:
> okay, so, where should I add this ? Should I modify the line objects
> themselves ? But then, I have to modify every single object which uses
> lines and where wobbly lines might make sense ?
What do you need to draw with wavy lines? If it is just a connection
line, you should probably just create a new line object. This is probably
a better idea than adding that feature to the existing objects in this
case.
> ones, I fear. Currently, I have automake 1.4, autoconf 2.13, libtool 1.3.3
> correct ?
Those look like the correct versions to use. Do you also have
gettext-0.10.35? How are you building dia from cvs? You should just
need:
./autogen.sh --prefix=/whatever
make
make install
> Hmmm... X doesn't, but SVG and EPS do, right ?
> If X doesn't, it might be possible to emulate that behaviour, by drawing
> into a private {bit|pix|whatever}map, rotating it, and then blitting it on
> the canvas ; well, this won't be precisely fast, but at least functional.
>
Drawing rotated text is never going to be efficient with the current X
APIs. There is talk of extended APIs in XFree86 4.0 which handle anti
aliased text, and they may also support this. I think it would be better
to wait for this. Currently, to rotate text, you need to create a
GdkPixmap big enough to hold the string, draw the text to the pixmap,
create a GdkImage of the pixmap so you can access the pixel values, rotate
the bitmap and finally draw the rotated pixel data to the screen (maybe
using gdkrgb). This is not very efficient.
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/