summaryrefslogtreecommitdiffstats
path: root/src/libnrtype
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2018-06-21 14:01:06 +0000
committerTavmjong Bah <tavmjong@free.fr>2018-06-21 14:01:06 +0000
commitce3499ada91fe33af536f3ceaea5d9a15226112f (patch)
treed9fc4de6f06cc2b786337c7997a36dd90c10adbb /src/libnrtype
parentMerge branch 'select-page' of gitlab.com:bobqwatson/inkscape (diff)
downloadinkscape-ce3499ada91fe33af536f3ceaea5d9a15226112f.tar.gz
inkscape-ce3499ada91fe33af536f3ceaea5d9a15226112f.zip
Ignore 'x' and 'y' attributes on SVG 2 wrapped text (except first for 'inline-size').
Some additinal refactoring.
Diffstat (limited to 'src/libnrtype')
-rw-r--r--src/libnrtype/Layout-TNG.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libnrtype/Layout-TNG.h b/src/libnrtype/Layout-TNG.h
index 678f04e6c..a4ba7171c 100644
--- a/src/libnrtype/Layout-TNG.h
+++ b/src/libnrtype/Layout-TNG.h
@@ -169,6 +169,13 @@ public:
/** lengthAdjust values */
enum LengthAdjust {LENGTHADJUST_SPACING, LENGTHADJUST_SPACINGANDGLYPHS};
+ enum WrapMode {
+ WRAP_NONE, // No wrapping or wrapping via role="line".
+ WRAP_WHITE_SPACE, // Wrapping via 'white-space' property.
+ WRAP_INLINE_SIZE, // Wrapping via 'inline-size' property.
+ WRAP_SHAPE_INSIDE // Wrapping via 'shape-inside' propertry.
+ } wrap_mode;
+
/** The optional attributes which can be applied to a SVG text or
related tag. See appendText(). See SVG1.1 section 10.4 for the
definitions of all these members. See sp_svg_length_list_read() for