From 6da81bb513399fe2008b002417bdfb4de68ea341 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 21 May 2014 11:43:00 +0300 Subject: Add debugging output operator<< for FontMetric Change-Id: I8df204b01a73454396561052f10784c71f10d081 --- include/vcl/metric.hxx | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'include/vcl') 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 & operator <<( + std::basic_ostream & 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 { -- cgit