getHeight method
Returns height taking into consideration font's size.
Implementation
double getHeight(Font format) {
double height;
if (_getDescent(format) < 0) {
height = _getAscent(format) - _getDescent(format) + _getLineGap(format);
} else {
height = _getAscent(format) + _getDescent(format) + _getLineGap(format);
}
return height;
}