Safe text metrics calculation with error handling
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(text_annotation_t), | intent(in) | :: | annotation | |||
| real(kind=wp), | intent(out) | :: | width | |||
| real(kind=wp), | intent(out) | :: | height | |||
| logical, | intent(out) | :: | valid | |||
| character(len=*), | intent(out) | :: | error_message |