Limit individual glyph sizes in distance field cache


Glyphs in fonts may have arbitrarily large bounding rects. A font could
cause unbounded allocations in our cache by defining unreasonably large
bounding box, exhausting system memory.

Fixes: QTBUG-151609
Pick-to: 5.15 6.5 6.8 6.12
Change-Id: I3b32c155eb45492532a5bfcb8df308f96ba4d9ce
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
commit6470a5017b77a16382d14e574e27968d75142d02
parentacbcdf9cf268d3d0f03f72e8b55d8ae985bc95fc
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
commit timeTue, 20 Oct 2026 12:52:46 +0000