Separate glyph and missing-glyph elements in a font
The old code added both to the same QHash. Then they could only
be distinguished by their respective 'unicode' attribute: A
glyph element needs it to be non-empty whereas defining it
in missing-glyph is pointless. Nevertheless, SVG allows doing
the opposite. One can therefore define fonts with elements and
attributes which don't make sense despite being syntactically
correct.
Such fonts were handled incorrectly. These included:
- 'missing-glyph' elements with a non-empty 'unicode' attribute
- multiple 'missing-glyph' elements in the same font
- 'glyph' elements without a unicode attribute or an empty one
Task-number: QTBUG-130140
Pick-to: 6.10
Change-Id: I1d75071cbd1b857aae56e3fcbbb8333381dd9126
Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>