pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roger Lee Whitcomb (Jira)" <j...@apache.org>
Subject [jira] [Comment Edited] (PIVOT-1060) Inconsistencies with font measurement on some platforms
Date Tue, 13 Apr 2021 21:20:00 GMT

    [ https://issues.apache.org/jira/browse/PIVOT-1060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17320505#comment-17320505
] 

Roger Lee Whitcomb edited comment on PIVOT-1060 at 4/13/21, 9:19 PM:
---------------------------------------------------------------------

Same platforms as screenshots:
On OSX:         Family="Courier", Face="Courier", size=18, float size=18.0, height=18.0, ascent=13.5703125,
descent=4.4296875, leading=0.0
On Windows: Family="Monospaced", Face="Monospaced.plain", size=18, float size=18.0, height=23.501953,
ascent=18.09668, descent=5.4052734, leading=-0.0

Seems like the conversion / rounding from float to integer coordinates are probably the issue
here.



was (Author: rwhitcomb):
Same platforms as screenshots:
On OSX:         Family="Courier", Face="Courier", height=18.0, ascent=13.5703125, descent=4.4296875,
leading=0.0
On Windows: Family="Monospaced", Face="Monospaced.plain", height=23.501953, ascent=18.09668,
descent=5.4052734, leading=-0.0

Seems like the conversion / rounding from float to integer coordinates are probably the issue
here.


> Inconsistencies with font measurement on some platforms
> -------------------------------------------------------
>
>                 Key: PIVOT-1060
>                 URL: https://issues.apache.org/jira/browse/PIVOT-1060
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk-terra
>         Environment: Windows 10 with 18 pt FontUtilities.MONOSPACED_FONTS (which could
be any of "Courier", "Courier New", "Andale Mono", "Monaco", "Menlo", or "MONOSPACED" depending
on platform).
>            Reporter: Roger Lee Whitcomb
>            Assignee: Roger Lee Whitcomb
>            Priority: Minor
>             Fix For: 2.1.0
>
>         Attachments: font_measure_osx.png, font_measure_windows.png
>
>
> Using a (new) NumberRuler with both TextArea and TextPane shows inconsistencies (only
on Windows that I can tell) between the font height and positioning between the ruler and
the two components. Specifically:
> * with TextPane the numbers are ~1 pix lower in ruler than in text
> * with TextArea the numbers in ruler are same ~1 pix lower on normal lines, BUT on wrapped
lines the TextArea seems to ignore leading so that the lines get higher and higher WRT ruler
> On OSX there seems to be none of the problems.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message