QSvgHandler: Extract Method parseFontWeight()
This is the same change as 25cae41692e3a8673f4492c3a8721782284c351f
was for font-style, so that commit message applies here, too.
After starting with font-style, and font-size, tackle font-weight in
this patch. Found that we're accepting any integral value when the CSS
grammar only allows multiples of 100 between 0 and 1000 exclusive, but
fixing that is left for another patch.
Amends the start of the git history in this module.
Pick-to: 6.11 6.8
Task-number: QTBUG-146726
Change-Id: Iab4d114b1bb87db5ae1c61471f9997c50a56cff8
Reviewed-by: Robert Löhning <robert.loehning@qt.io>