How to get Text object font-size after modifying object

后端 未结 4 2013
旧时难觅i
旧时难觅i 2021-01-18 06:10

How can I get Text object font size after modifying object in fabric.js?

Below is my code.

var text = new fabric.Text(imgText, {
            


        
4条回答
  •  一向
    一向 (楼主)
    2021-01-18 06:37

    getHeightOfLine(lineIndex) → {Number} : Computes height of character at given position and return fontSize of the character. Is it? tell me. It's a method of text class. http://fabricjs.com/docs/fabric.Text.html#getHeightOfLine

提交回复
热议问题