On 24 July 2018 at 15:07, Peter Uhnák <[hidden email]> wrote:
Could you clarify... are "light" "normal" "full" and "none" done through Morphic without Bloc ? Are you on a high-dpi screen? I'm not very familiar with this, but you could try experimenting... cheers -ben |
Hi Peter,
Thanks for the question and motivation to do a text rendering quality comparison. I think you forgot that Pharo does not support "retina" or "hi-dpi" displays. Imagine you have a laptop screen with the resolution of (3840x2160). Pixels are so small, that UI gets almost unreadable. Therefore OS has to scale the whole interface with for example scale factor 2 (can be changed in settings). Interesting is that now programs think the resolution is 1920x1080. Pharo thinks same too, so it renders the whole UI in 1080p and then it gets upscaled to 4K which results in the blurry interface. Programs have to support "hi-dpi" screens explicitly. Bloc for example, when opened in SDL2 native window supports retina screens and delivers very beautiful graphics. The process is quite simple: SDL2 windows provide two types of extent:
we can get scale factor by dividing canvas extent / window extent. Next we create a Bloc canvas of size equal to window canvas extent (4K) provided by SDL2 and scale the whole graphic scene by previously computed scale factor 2 while actually rendering everything in window extent coordinates (1080p). It can be easily done since Bloc is vector graphics. I would like to emphasise that everything in bloc is based on dp and not px. 1dp = 1px * scaling factor. Coming back to the text rendering issue :) The correct experiment would be to take a non-retina monitor and do the comparison, then take a retina monitor and repeat the same comparison process making sure that all tested programs have support of retina screens. This way we compare Bloc with web browsers in the same environment. Below are the results: (non-retina) (retina) When zoomed-in (download pictures, they are .png) we can see that the text rendering quality in Bloc is as good as in other modern web-browsers. Indeed, there are very minor differences between all of them, but perceived quality is on the same level, especially in "retina" case. P.S. Compared on OSX with Arial font. Cheers, Alex On 24 July 2018 at 10:09, Ben Coman <[hidden email]> wrote:
|
Free forum by Nabble | Edit this page |