You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Texts aren't rendered same as in v1.0.2, TextMetrics are different for all textBaseLine but it is most noticeable for top && bottom, when middle || alphabetic are used changes are very small.
baseline: alphabetic
baseline: bottom
old: v1.0.2, new: v2.0.1
Notice: how text is shifted upwards when baseline: bottom
I am unsure about this, to be honest. This is causing me problems because I had fine-tuned my render functions to display text in specific positions based on TextMetrics. Primarily, I would like to know if this is/was an expected change between versions and, if possible, what caused it.
The text was updated successfully, but these errors were encountered:
Nothing changed between v1 and v2 within skia-canvas itself, but it upgrades to a much newer revision of rust-skia, so things have almost certainly changed under the hood. However: one alternative explanation that comes to mind is that your system is now using gpu-based rendering as of v2 (in which case setting canvas.gpu = false would yield different results).
That said, after looking over the way different baselines are computed (for #209) I think I've found some modifications that would better match the way browsers calculate offsets and determine the default leading when a lineHeight value isn't included in the ctx.font assignment.
About
Texts aren't rendered same as in v1.0.2,
TextMetrics
are different for alltextBaseLine
but it is most noticeable fortop
&&bottom
, whenmiddle
||alphabetic
are used changes are very small.old: v1.0.2, new: v2.0.1
Notice: how text is shifted upwards when baseline: bottom
Reproducible example
Toggle me!
Expected behavior
I am unsure about this, to be honest. This is causing me problems because I had fine-tuned my render functions to display text in specific positions based on TextMetrics. Primarily, I would like to know if this is/was an expected change between versions and, if possible, what caused it.
The text was updated successfully, but these errors were encountered: