You can get accurate bounding boxes with text(top-edge: "bounds", bottom-edge: "bounds", [x]).
text(top-edge: "bounds", bottom-edge: "bounds", [x])
With your example, this gives: