>
> @Jim
> You have perhaps already looked into this but if not this page
> https://msdn.microsoft.com/en-gb/library/windows/desktop/dn469266(v=vs.85).aspx
> is worth a read. You should note that it would appear that if you do
> not call SetProcessDpiAwareness() then Windows will assume the
> application is not scale aware and it will scale your text and UI
> elements for you (although with lower quality than if you did it
> yourself). This will give you double scaling of your text which is
> bad. However, if you do call SetProcessDpiAwareness(), then you are
> potentially overriding a call made by the library user and you are
> forcing a user to do what you want and not what they want. For this
> reason I would suggest that you do not attempt to grab the monitor
> dpi, but instead allow the user to decide whether to be dpi aware and
> deal with it themselves by calling plspage.
>
> While we are on the topic of standardising DPI is it also worth
> standardising page size? It might be useful to have a set of default
> sizes, perhaps portrait A4, for noninteractive drivers, and a default
> size for interactive drivers which would be a scaled version of that
> for noninteractive drivers as A4 is significantly bigger than my
> laptop screen assuming 90 dpi? Not sure if raster and non raster
> drivers should have different default sizes?
>

@Jim again
I should have continued reading the link I sent before sending that message.

It turns out that to set DPI awareness either SetProcessDpiAwareness()
must be called "prior to any Win32API call that forces the system to
begin virtualization" preferably instead DPI awareness should be set
in the application manifest. Within plplot we are therefore in no
position to be able to correctly set dpi awareness. I think this gives
an even stronger case for simply using a fixed default.

Phil

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

Reply via email to