Plot2Kill 0.02

dsimcha dsimcha at yahoo.com
Mon Jul 19 20:22:37 PDT 2010


== Quote from Lars T. Kyllingstad (public at kyllingen.NOSPAMnet)'s article
> > Yea, I tried to use it on *nix today and realized that.  This will get
> > fixed soon.
> >  In addition to the typo, I forgot that getting a font can return null.
> >  I have no
> > idea why it works on Windows.  Anyhow, I'll make platform-specific
> > default fonts (using core X11 fonts on *nix and properly spelled Verdana
> > on Windows) and as a last resort, if the default font doesn't exist,
> > I'll make it just not render text instead of crashing the program.
> So that was why it kept going SEG-V on me!  I tried it out earlier today,
> but didn't have time to investigate too much.  It works fine now, and I
> have the demo window up and running.  Will definitely use for serious
> work tomorrow. ;)
> -Lars

Fixed.  http://dsource.org/projects/scrapple/changeset/772

I fired up my barely-used Linux partition for this.  I knew it would come in
handy.  I also kludged around the weird text cutoff bugs that only appear on
Linux.  (I don't want to say I fixed it because I didn't address the root cause
and I don't know what the root cause is.  My best guess is that on Linux the font
measurements are slightly off.)

The most serious bug now, IMHO, is that there's no way to save plots to a file
from a machine with console-only access, such as a supercomputer that you SSH
into.  I don't know how to fix this.  Calling Main.init() on a machine with no
windowing system borks everything.  Does anyone have any suggestions on how to fix
this?

In general, I want to thank the D community for answering my sometimes naive
questions about gtkD and GUIs in general.  Writing this plotting library has been
more challenging than most of my projects, as I'd never written a serious GUI app
before and am learning how GUI frameworks work on the fly.


More information about the Digitalmars-d-announce mailing list