[OpenJDK 2D-Dev] [9] Review request for 8076545 Text size is twice bigger under Windows L&F on Win 8.1 with HiDPI display

Phil Race philip.race at oracle.com
Thu Oct 29 20:36:37 UTC 2015


size->cx = (int)ceil(size->cx / scale);


So if size->cx / scale works out to be 12.0001 you will round it up to 13?

Can you check what pixel size windows gives you in such a case ?
I'd be a little surprised if they did that rather than round.

Is the SetFontProperty that does not accept a scale parameter still used
somewhere ?

-phil.

On 10/29/2015 04:53 AM, Sergey Bylokhov wrote:
> On 17.07.15 16:27, Alexander Scherbatiy wrote:
>>>
>>> - Sergey's point about multi-mon should be checked out.
>>      Windows 8.1 has option "Let me choose one scaling level for all my
>> displays".
>>      If I unset it I am able to change the size of all items. However,
>> the DPI which returns GetDPIForMonitor is still 2 on HiDPI displays.
>
> This version looks fine, but I am sure it can be double checked on 
> windows 10 at some moment as well.
>
>




More information about the 2d-dev mailing list