diff options
author | Xisco Fauli <anistenis@gmail.com> | 2016-05-31 00:13:00 +0200 |
---|---|---|
committer | Xisco Faulí <anistenis@gmail.com> | 2016-05-31 07:41:56 +0000 |
commit | 53f9762889f96a5c29e1b414e0b9e2866ad1c2e6 (patch) | |
tree | fdc461c5068ddc01511dd379e04e56a32c0d5bef /test/source/primitive2dxmldump.cxx | |
parent | 5d613f920510a5a16ddb50c1577d8c29f1a8e069 (diff) |
SVGIO: Add support for font-family in unittests and unify...
.. textsimpleportion's assert
Change-Id: I97d4c76dcfaa6d3ebebfe3eebfabc8ee7799589d
Reviewed-on: https://gerrit.libreoffice.org/25691
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Xisco Faulí <anistenis@gmail.com>
Diffstat (limited to 'test/source/primitive2dxmldump.cxx')
-rw-r--r-- | test/source/primitive2dxmldump.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/source/primitive2dxmldump.cxx b/test/source/primitive2dxmldump.cxx index 0f7a4fc372a7..9cc58ef8edea 100644 --- a/test/source/primitive2dxmldump.cxx +++ b/test/source/primitive2dxmldump.cxx @@ -28,6 +28,7 @@ #include <drawinglayer/primitive2d/svggradientprimitive2d.hxx> #include <drawinglayer/attribute/lineattribute.hxx> +#include <drawinglayer/attribute/fontattribute.hxx> #include <basegfx/polygon/b2dpolypolygontools.hxx> #include <basegfx/polygon/b2dpolygontools.hxx> @@ -191,6 +192,9 @@ void Primitive2dXmlDump::decomposeAndWrite( } rWriter.attribute("text", rTextSimplePortionPrimitive2D.getText()); rWriter.attribute("fontcolor", convertColorToString(rTextSimplePortionPrimitive2D.getFontColor())); + + drawinglayer::attribute::FontAttribute aFontAttribute = rTextSimplePortionPrimitive2D.getFontAttribute(); + rWriter.attribute("familyname", aFontAttribute.getFamilyName()); rWriter.endElement(); } break; |