Fabric.js: fabric group让text字体变形

Created on 2 May 2018  ·  9Comments  ·  Source: fabricjs/fabric.js

Version

2.2.3

Test Case

https://jsfiddle.net/waliblog/hbxzdmpc/

Steps to reproduce

1.拖拽group Y轴时,text文本的自己会变形。有什么方能能不让字体变形。

Expected Behavior

Actual Behavior

Most helpful comment

There is also a setOnGroup callback that can be used to restore text scaling, i ll try to make an example

All 9 comments

I m sorry i speak only english and italian, and we prefer keep this place in english.
Can you translate?

@asturur he said when he drag the Y-axis to change the height of the red rectangle, the fontsize is changed too.

oh i understand now looking at the fiddle.
This requires custom code to solve, nothing hard, but fits more in stackoverflow.com, where you will probably get an answer before i get there.

Can we move that discussion there?

@slahser1992 谢谢

@asturur 非常感谢您的回答,很高兴能和你一起讨论这个 问题。

Don't group text and rect object. Make text dependable to rect. Check this fiddle

There is also a setOnGroup callback that can be used to restore text scaling, i ll try to make an example

兄弟 同道中人啊T_T

image

How can i help not speaking chinese? This is what google translate offers me

Was this page helpful?
0 / 5 - 0 ratings