+ return _cachedFormats[ftype] = fmt;
+}
+
+QFontMetricsF *UiStyle::fontMetrics(quint32 ftype) {
+ // QFontMetricsF is not assignable, so we need to store pointers :/
+ if(_cachedFontMetrics.contains(ftype)) return _cachedFontMetrics.value(ftype);
+ return (_cachedFontMetrics[ftype] = new QFontMetricsF(mergedFormat(ftype).font()));