I am using fabricjs 1.5 and I am stuck on aligning the text in the middle of the line vertically. I am using this code to set the line height
text.setProperty('lineHeight', $scope.lineHeight.current);
It changes the line height of text on canvas but text always remains at the top. I want it to be in the vertically middle. Please help.