Center text in blackboard
Fix function to measure text size