Implemented tracing of glyphs in the diagrams backend.