From ce3499ada91fe33af536f3ceaea5d9a15226112f Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Thu, 21 Jun 2018 16:01:06 +0200 Subject: Ignore 'x' and 'y' attributes on SVG 2 wrapped text (except first for 'inline-size'). Some additinal refactoring. --- src/libnrtype/Layout-TNG.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/libnrtype') 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 -- cgit v1.2.3