Hi Jim:

On 2015-08-20 23:41-0400 Jim Dishaw wrote:

> My plan was to default to the DPI setting returned by the windows
API. Microsoft has documentation on how to write code that would be
compatible with high-dpi and regular devices.  I don't see any major
problems with letting the user set the dpi other than poor quality
output.

> My goal is to honor the font size height specified by the user as the default 
> behavior.

Good.

But what do you do when you see that both plsc->xdpi and plsc->ydpi
are set to PLPLOT_DEFAULT_API?  (See my second previous post in this
thread concerning PLPLOT_DEFAULT_API.) Did the user set that because
they wanted that exact value, or is that the default value which you
can then override by following the Microsoft prescription?

Maybe for the default we should set

plsc->xdpi = -PLPLOT_DEFAULT_API;
plsc->ydpi = -PLPLOT_DEFAULT_API;

as a well-known signal that we want to use default DPI?  Most drivers
would then simply use PLPLOT_DEFAULT_API if plsc->[xy]dpi was set to
the negative of that, but some might use a different default value
instead (such as the Microsoft prescription) if either plsc->xdpi
or plsc->ydpi was -PLPLOT_DEFAULT_API?

Just thinking aloud here to stir up more discussion....

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to