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>
commitdb71c0cdf3c82a3d55ddbebad35605b32cc91dc0
parentd6be978c34f2abb29c20ff12db54be7dc9cd4922
authorRobert Löhning <robert.loehning@qt.io>
committerRobert Löhning <robert.loehning@qt.io>
commit timeMon, 29 Sep 2025 13:20:28 +0200