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
What are the steps to reproduce?
Using sharp ^0.23.3, run the code snippets in the examples below.
What is the expected behaviour?
The picture should contain a circle with the letters AB centered inside of it.
However, the text is centered horizontally, and offset vertically.
Are you able to provide a standalone code sample, without other dependencies, that demonstrates this problem? Are you able to provide a sample image that helps explain the problem?
lovell
changed the title
SVG renderer does not align percentage-based y coordinates properly
SVG with dominant-baseline does not align percentage-based y coordinates properly
Dec 4, 2019
Sharp, which we use to export svg -> png, doesn't support
`dominant-baseline` (lovell/sharp#1996).
Instead, we can just include a rough estimate of the offset ourselves.
What is the output of running
npx envinfo --binaries --languages --system --utilities
?What are the steps to reproduce?
Using sharp ^0.23.3, run the code snippets in the examples below.
What is the expected behaviour?
Are you able to provide a standalone code sample, without other dependencies, that demonstrates this problem?
Are you able to provide a sample image that helps explain the problem?
Current behaviour:
Expected behaviour (created by setting the offset manually, might be off by a few pixels):
The text was updated successfully, but these errors were encountered: