svg_loader: fix the inifite loop bug when size has 'em' unit.
authorHermet Park <chuneon.park@samsung.com>
Tue, 29 Jun 2021 11:13:03 +0000 (20:13 +0900)
committerHermet Park <chuneon.park@samsung.com>
Fri, 2 Jul 2021 01:49:23 +0000 (10:49 +0900)
commit35b84e4adc455300ef14ac3562996d04851bfcbf
tree1bce7392ed23cdd36df7ab9b9b0cac2be1e16c12
parentc0d00dd67f4b5d1be75900b597516fbfc92c5d26
svg_loader: fix the inifite loop bug when size has 'em' unit.

svg may have 'em' unit for fonts, strtof() must handle this case to not
drop in the infinite loop.

Yet thorvg doesn't support font feature in svg,
it must multiply values with font size if those values have 'em' size.

@Issue: https://github.com/Samsung/thorvg/issues/488

Change-Id: I07f3bcb7d177420739e3804d01b3d2e7492d457f
src/loaders/svg/tvgSvgUtil.cpp