treeform / pixie

Full-featured 2d graphics library for Nim.
MIT License
743 stars 28 forks source link

add font vertical alignment in the context object #321

Closed doongjohn closed 2 years ago

doongjohn commented 2 years ago

Why is there only a horizontal alignment in the context object?\ Is manually calculating vertical alignment recommended?

treeform commented 2 years ago

Are you talking about https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/textBaseline ?

We still need to implement this feature. You will probably have to compute it manually for now, sorry.

treeform commented 2 years ago

We have added textBaseline https://github.com/treeform/pixie/pull/404

Thank you for opening the issue!