diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2015-12-05 14:40:56 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2015-12-05 14:40:56 +0000 |
| commit | 78005ad417dde6dddab40efacb757b1d6b0c03d0 (patch) | |
| tree | a827191465ff949ec952b55ffed30fe943cab019 /src/text-tag-attributes.h | |
| parent | added comment + simpler rounding (diff) | |
| download | inkscape-78005ad417dde6dddab40efacb757b1d6b0c03d0.tar.gz inkscape-78005ad417dde6dddab40efacb757b1d6b0c03d0.zip | |
Handle units in the 'x', 'y', 'dx', and 'dy' text and tspan attributes.
Fixed bugs:
- https://launchpad.net/bugs/1522478
- https://launchpad.net/bugs/262528
- https://launchpad.net/bugs/168845
(bzr r14505)
Diffstat (limited to 'src/text-tag-attributes.h')
| -rw-r--r-- | src/text-tag-attributes.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/text-tag-attributes.h b/src/text-tag-attributes.h index 7a389ed39..2cf7a8bde 100644 --- a/src/text-tag-attributes.h +++ b/src/text-tag-attributes.h @@ -31,11 +31,14 @@ public: /** Process the parameters from the set() function of SPObject. Returns true if \a key was a recognised attribute. */ - bool readSingleAttribute(unsigned key, gchar const *value); + bool readSingleAttribute(unsigned key, gchar const *value, SPStyle const *style, Geom::Rect const *viewport); /// Write out all the contents of #attributes to the given node. void writeTo(Inkscape::XML::Node *node) const; + /// Update relative values + void update( double em, double ex, double w, double h ); + /** For tspan role=line elements we should not use the set x,y coordinates since that would overrule the values calculated by the text layout engine, however if there are more than one element in |
