Monday, 30 September 2013

Re: Treeview triangles

On Mon, 30 Sep 2013 16:55:51 +0100, Rob Kendrick wrote:

> On Mon, Sep 30, 2013 at 04:32:43PM +0100, Michael Drake wrote:
> >
> > When the triangle glyphs aren't available (as is the case on certain
> > platforms, unless we distribute the glyphs ourselves), the treeviews don't
> > look satisfactory.
> >
> > As an alternative, I could just draw triangles with the polygon plotter.
> >
> > There are a few drawbacks with this:
> >
> > - Triangle has to have dimensions which are even or the
> > triangle will look lopsided.
> > - Polygon plotter may not anti-alias.

Can we ask the frontend if it has the glyphs available, or is that
unnecessary complication?

Is it just RISC OS with the problem, as you seem to be suggesting
other platforms are missing these glyphs too?

> Alternatively, we implement a generic anti-aliased plotter for other
> front ends to use.

Whilst I'd like a core anti-aliased plotter, I'm not sure how that
would work, and it sounds like an awful lot of work.

For this specific triangle problem, I can see that plotting them
anti-aliased into a bitmap, and then getting the frontend to plot the
bitmap might work, if a reasonable anti-aliased triangle plotting
routine can be written.

Chris

No comments:

Post a Comment