Pomax / lib-font

This library adds a new Font() object to the JavaScript toolbox, similar to new Image() for images
MIT License
731 stars 72 forks source link

Fix faulty width calculation #38

Closed X-Tender closed 6 years ago

X-Tender commented 6 years ago

Sometimes the getPropertyValue("width") returns values ike "89,123" which breaks the if condition "if(width > 0". Therefore the "," gets replaced by a "."

X-Tender commented 6 years ago

Seems like the behavior was a chrome issue in 63.0.3239.108 after a update it didn't appeared again