Mox <[EMAIL PROTECTED]> writes:

> I recently found the file canvas/overview.txt that says that in the
> future VCL is going to go away eventually and canvas + cppcanvas
> will replace it.  What does this mean to porters like Mac OS X ppl?
> I know that VCL is not going away for a long time, but is the idea
> really that canvas will eventually take care of all the necessary
> graphics work (including creating windows and handling fonts)?
>
Hi Mox,

well, getting rid of VCL is, as you noted, a rather long-term project
- so, no need to bother at this stage.

Apart from that, the whole canvas project is about providing a
replacement for application render output - i.e. for VCL's
OutputDevice. This is deliberately distinct from all the toolkit and
windowing stuff - what we're doing on this front is currently kind of
open.

> I'm currently investigating the cws:s cairocanvas + cairofixes01. It
> seems that at least for modules canvas and cppcanvas, the only
> needed changes to get it building on Mac OS X would be to convert
> from X -> Mac the files:
> canvas/source/cairo/cairo_cairo.cxx
> canvas/source/cairo/cairo_helper.cxx
> canvas/source/cairo/makefile.mk
> canvas/source/tools/image.cxx
>
Correct, in principle. Though cairo canvas employs a few ugly hacks to
get text layout done in a compatible way, which passes XPixmaps to VCL
(and thus would also need to be ported).

> So, is canvas currently actively used anywhere, when running OOo (
> e.g. OOo 2.0.2)?
>
Yes. Run the slideshow.

> Is there any advantage now or in the future to port cairo canvas to
> Mac OS X?
>
Hm. From my POV, I'd rather not put any time into that _now_ - when
the Mac port is running on Aqua, the VCL-based canvas implementation
will do for now. Long-run, I'd prolly prefer a native Quartz2D port of
the canvas interface, simply to keep the number of intermediate levels
low (and maybe access features hidden by cairo). But a cairo-based
port also has its advantages, namely that it'll prolly be able to
provide anti-aliased slideshows will low additional porting effort.

Cheers,

-- 

Thorsten

If you're not failing some of the time, you're not trying hard enough.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to