Re: AW: What happens when enabling Hi-DPI scaling?

2015-10-27 Thread J. Landman Gay

On 10/27/2015 2:58 PM, Mark Waddingham wrote:


It causes text (on Windows) to be rendered as a path internally, and
then painted to the target - this means that it doesn't suffer the
'changing metrics' problem. It is actually what 'formatForPrinting' now
sits on (on Windows) - meaning you can actually show a nice accurate
print preview of layout of a stack without the drawbacks of that mode
which used to exist (many versions ago).

Of course, I think I just noticed it never made it into the dictionary...


I didn't even have to think, I looked it up and it wasn't there. :)

But since you're (presumably) about to add the term, is there a better 
word for it? Something indicating "text" somehow? Anyone looking for a 
property like that would probably do a search for "text".


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: AW: What happens when enabling Hi-DPI scaling?

2015-10-27 Thread Mark Waddingham

On 2015-10-27 20:50, Scott Rossi wrote:
Hold on  -- "useIdealLayout" is a real property?  When l think of all 
the

years I wasted fiddling with the design of projects...

on clientRequest
   create stack
   put it into theStack
   set the useIdealLayout of theStack to true
   save theStack
   deliver theStack
   send "vacation" to me in 5 seconds
end clientRequest


Haha - unfortunately it is nowhere near as impressive as that!

It causes text (on Windows) to be rendered as a path internally, and 
then painted to the target - this means that it doesn't suffer the 
'changing metrics' problem. It is actually what 'formatForPrinting' now 
sits on (on Windows) - meaning you can actually show a nice accurate 
print preview of layout of a stack without the drawbacks of that mode 
which used to exist (many versions ago).


Of course, I think I just noticed it never made it into the 
dictionary...


Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: AW: What happens when enabling Hi-DPI scaling?

2015-10-27 Thread Scott Rossi
Hold on  -- "useIdealLayout" is a real property?  When l think of all the
years I wasted fiddling with the design of projects...

on clientRequest
   create stack
   put it into theStack
   set the useIdealLayout of theStack to true
   save theStack
   deliver theStack
   send "vacation" to me in 5 seconds
end clientRequest


Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 10/27/15, 12:22 PM, "use-livecode on behalf of Mark Waddingham"

wrote:

>You *can* try and set the 'useIdealLayout' property of the stack if
>there are visual problems



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: AW: What happens when enabling Hi-DPI scaling?

2015-10-27 Thread Mark Waddingham

On 2015-10-27 14:56, Tiemo Hollmann TB wrote:

Thanks Mark for jumping in!
If I understood you correct, things even get crisper and not blurred 
with

Hi-DPI enabled on a Hi-DPI monitor and keep as they are on a standard
monitor. So my conclusion would be to enable it always by standard 
(since it

is anyway standard on OS X)


Yes - this is the ideal situation :)

What could be a reason not to enable Hi-DPI scaling on Windows or with 
other

words, why is it an option?


Ah - well - the APIs we currently use on Windows are a bit of a dinosaur 
in terms text rendering. We still use 'GDI' which has the unfortunate 
problem that text does not linearly scale.


What this means is that the size of a piece of text rendered with GDI at 
scale factor 1.0 is not necessarily the same as the same text rendered 
at scale factor 2.0. This is down to the TrueType hinting and other 
methods it employs which you cannot actually turn off (this hinting can 
be quite aggressive - its goal was to ensure text rendered at low screen 
resolutions was still highly readable without anti-aliasing - and tends 
to alter the horizontal width to varying degrees for different fonts).


We've not actually managed to find a way to solve this problem 'well' 
yet - particularly as we still have to support XP (given its market 
share is still quite considerable!).


So, you do need to check your app in Hi-DPI mode on windows (by 
adjusting the text scale factor in settings, as previously mentioned) 
and make sure it still looks the way you need it to.


You *can* try and set the 'useIdealLayout' property of the stack if 
there are visual problems - this will make the text render in the 
appropriately 'linearly scalable' way. However, it does have a 
performance and visual difference impact - the text will be slightly 
fuzzier, and will take a little longer to render.


Hope this helps!

Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode