Fixed a warning
Fixed a bug in font geometrics function