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)
For
48px Roboto
fonttopBounding
corresponds to theascender
. Wouldn't it be nicer to have a real top line calculated fromtop
textBaseline (MDN ref)? As well asbottom
font line and possiblyline-height
andbaseline
, 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