How to get minimal bounding box of each glyph?

I need to get the minimal axis-aligned bounding box (AABB) for each glyph?

The objective is to show a rectangle around each one?

The attached code will add a rectangle annotation around each glyph, showing the minimal bounding box detected.

ElementReaderTest.cpp (3.41 KB)