Textmetrics alternative