Fix sizeWithFont deprecation warning