emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Fix" sag scaling for hidpi


From: Yuan Fu
Subject: Re: "Fix" sag scaling for hidpi
Date: Thu, 4 Feb 2021 18:10:15 -0500


> On Feb 4, 2021, at 5:07 PM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> 
>> And Emacs will display a crisp 100x100 image in the buffer. However, this 
>> doesn’t work for sag images. If I do
>> 
>> (progn
>>  (require 'svg)
>>  (let ((svg (svg-create 200 200)))
>>    (svg-text svg "test"
>>              :font-size 100
>>              :y 150)
>>    (insert-image (svg-image svg :scale 0.5))))
>> 
>> The image is still blurry:
> 
> I think it's a bug, and that even
> 
>    (progn
>      (require 'svg)
>      (let ((svg (svg-create 100 100)))
>        (svg-text svg "test"
>                  :font-size 100
>                  :y 150)
>        (insert-image (svg-image svg :scale 1.0))))
> 
> should insert a crisp image.

Sorry, I should be more specific. This blurry problem only occurs on nsterm 
with hidpi screens. (That’s because cocoa reports logical pixel sizes instead 
of physical ones.)

Yuan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]