fix: correctly set italic in `styleUtils.getSizeForString` by tbouffard · Pull Request #805 · maxGraph/maxGraph

@tbouffard

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.

@tbouffard added the bug

Something isn't working

label

May 4, 2025