summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/vcl/metric.hxx17
1 files changed, 16 insertions, 1 deletions
diff --git a/include/vcl/metric.hxx b/include/vcl/metric.hxx
index 27a849849911..f1be383dd111 100644
--- a/include/vcl/metric.hxx
+++ b/include/vcl/metric.hxx
@@ -77,8 +77,23 @@ public:
};
-// - FontCharMap -
+template< typename charT, typename traits >
+inline std::basic_ostream<charT, traits> & operator <<(
+ std::basic_ostream<charT, traits> & stream, const FontMetric& rMetric )
+{
+ stream << "{"
+ << "name=" << "\"" << rMetric.GetName() << "\""
+ << ",ascent=" << rMetric.GetAscent()
+ << ",descent=" << rMetric.GetDescent()
+ << ",intLeading=" << rMetric.GetIntLeading()
+ << ",extLeading=" << rMetric.GetExtLeading()
+ << ",lineHeight=" << rMetric.GetLineHeight()
+ << ",slant=" << rMetric.GetSlant()
+ << "}";
+ return stream;
+}
+// - FontCharMap -
class VCL_DLLPUBLIC FontCharMap
{