Top line, bottom line, basline? #2

Open
opened 6 years ago by dy · 0 comments
dy commented 6 years ago

For 48px Roboto font topBounding corresponds to the ascender. Wouldn't it be nicer to have a real top line calculated from toptextBaseline (MDN ref)? As well as bottom font line and possibly line-height and baseline, just for the reference.

For now the values seem to be isolated from the external font appearance, eg. it is impossible to place font properly as in gl-text

For `48px Roboto` font `topBounding` corresponds to the `ascender`. Wouldn't it be nicer to have a real top line calculated from `top`textBaseline ([MDN ref](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/textBaseline))? As well as `bottom` font line and possibly `line-height` and `baseline`, just for the reference. For now the values seem to be isolated from the external font appearance, eg. it is impossible to place font properly as in [gl-text](https://github.com/a-vis/text)
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: joepie91/measure-font#2
Loading…
There is no content yet.