Fixed font getsize issue seen on Ubuntu host.