Kaydet (Commit) 2c704832 authored tarafından Jan-Marek Glogowski's avatar Jan-Marek Glogowski

Pretty print FontSelectPattern

Change-Id: Ia43dbfd6313935bec90ac88018011eacca0c0eaf
Reviewed-on: https://gerrit.libreoffice.org/60090
Tested-by: Jenkins
Reviewed-by: 's avatarJan-Marek Glogowski <glogow@fbihome.de>
üst bce47223
......@@ -25,6 +25,7 @@
#include "fontattributes.hxx"
#include <ostream>
#include <unordered_map>
namespace vcl { class Font; }
......@@ -68,6 +69,16 @@ public:
ItalicMatrix maItalicMatrix; // Force matrix for slant
};
template< typename charT, typename traits >
inline std::basic_ostream<charT, traits> & operator <<(
std::basic_ostream<charT, traits> & stream, const FontSelectPattern & rFSP)
{
stream << (rFSP.maTargetName.isEmpty() ? "<default>" : rFSP.maTargetName)
<< " (" << rFSP.maSearchName << ") w: " << rFSP.mnWidth << " h: "
<< rFSP.mnHeight << " alias: " << rFSP.mbNonAntialiased;
return stream;
}
#endif // INCLUDED_VCL_INC_FONTSELECT_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment