带有自定义字体的文本框边框加载不正确
我尝试将新字体加载到我的 FabricJS 画布上。但是在渲染后,文本相对于其边界框的放置不正确。然而,边界框本身的大小和位置似乎不错,内容(文本)错位了。我尝试了很多事情,包括在设置文本框的属性之前等待字体正确加载,但它并没有完全成功,所以我向 SO 寻求进一步的建议。
I tried loading a new font to my FabricJS canvas. But when after it rendered, the text is placed incorrectly in relation to its bounding box. However, the size and positioning of the bounding box itself seem to be good, the content (text) is misplaced. I tried a number of things, including waiting for the font to properly load before setting the attributes of the textbox, but it wasn't completely successful, so I am turning to SO for further suggestions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论