/** * Class: mxUtils * * Helper methods. * * Function: getLabelSize * * Returns the size of the given label. */ static function getLabelSize($label, $style) { $fontSize = mxUtils::getValue($style, mxConstants::$STYLE_FONTSIZE, mxConstants::$DEFAULT_FONTSIZE); $fontFamily = mxUtils::getValue($style, mxConstants::$STYLE_FONTFAMILY, mxConstants::$DEFAULT_FONTFAMILY); return mxUtils::getSizeForString($label, $fontSize, $fontFamily); }