fix: correctly set italic in `styleUtils.getSizeForString` by tbouffard · Pull Request #805 · maxGraph/maxGraph
The problem was introduced in 6fc05a3, probably by a wrong copy/paste of the previous line of code. When the text was in italic, the style attribute 'fontWeight' was incorrectly set instead of the 'fontStyle' attribute. The returned size was then incorrect.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters