added fontmetrics hack