Text has no baseline options
GMartigny opened this issue · 0 comments
GMartigny commented
Information
- Your current navigator: Chrome v77
- The package and version you used: @pencil.js/text v1.12.0
Description
It's not currently possible to change the baseline of texts. A new option would be great.
It would be an enum, much like the align
option. With "top"
, "middle"
and "bottom"
for a start.
Should we can call it baseline
?
Reproduce by
// This text is not center on screen :/
const text = new Text(scene.center, "Hello\nWorld", {
align: "center",
});