public int rotatedStringHeight(String str, double rotationAngle,
String fontFamily, String fontWeight, String fontSize) {
String metricsKey = getStrokeColor() + fontFamily + fontWeight + fontSize
+ rotationAngle;
CanvasFontMetrics rmt = (CanvasFontMetrics) fontMetricsCache
.get(metricsKey);
if (rmt != null && rmt.rfm != null) {
return rmt.rfm.stringHeight(str.toCharArray());
} else {
return super