[squeak-dev] highdpi testing

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Fri Sep 25 19:43:52 UTC 2020


Hi Tobias,


sorry I did not answer earlier! This approach looks better for me, however, the wheel is still not absolutely round:


[cid:3212099a-026e-460d-924c-75a9564be237]

<http://www.hpi.de/>
(The shadows have a wrong position.)

For the first step, we could start by asking the user whether they would like to change the font size (#changeFontSize:) when a new scale factor is detected, couldn't we?

PS: @Tom:
> we try drawing things while we load things :)
For the case you did not already read it, I created a changeset that could solve this problem: http://forum.world.st/Changeset-Eliminating-global-state-from-Morphic-tp5121690p5122464.html It also allow me to file in the original DpiAware changeset.

Best,
Christoph
________________________________
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von Tobias Pape <Das.Linux at gmx.de>
Gesendet: Montag, 21. September 2020 15:50:30
An: The general-purpose Squeak developers list
Betreff: Re: [squeak-dev] highdpi testing

Hi

> On 19.09.2020, at 19:26, Thiede, Christoph <Christoph.Thiede at student.hpi.uni-potsdam.de> wrote:
>
> Hi,
>
> ah, I had assumed something like this, thanks for fixing, Tom! :-)
>
> #actualScreenScaleFactor is a very helpful tool, but I do not yet see the whole idea of the changeset.
> In what sense is this meant to be a complement of RealEstateAgent >> #scaleFactor or rather an orthogonal concept?
> After loading the changeset and resetting my UI theme, the background image of the world disappeared and all new windows are huge, but they still have a tiny font - am I supposed to set the #scaleFactor manually (to 12, in my example)?
> Where exactly can I see any components in the image that are upscaled by the new changeset?
>

These do something.
Load in order:

DpiAware-Kernel
DpiAware-Morpic
DpiAware-Display

First two are harmless, third will do something.
If nothing changes, do
        UserInterfaceTheme cleanUpAndReset.

Issues ensue.
- Layouting borks.
        The assert after the potential relayout
                self assert: (self hasProperty: #doLayoutAgain) not
        fails already in the docking bar…
- Fonts with UI-Themes do not work.
  These are "Deep-referenced" to a pixel size (for Strike fonts) on creation, (so also during UserInterfaceTheme cleanUpAndReset).
  However, when the scale factor changes, the pixel-sized fonts don't match the point sizes anymore…
    This used to work pre-UI-Themes, as everyone requesting a Font did so by directly asking StrikeFont or TextStyle at the time the
  Font was used. Hummm..

Hope you enjoy.
-t



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200925/21bcbb86/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedImage.png
Type: image/png
Size: 149697 bytes
Desc: pastedImage.png
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200925/21bcbb86/attachment-0001.png>


More information about the Squeak-dev mailing list