You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A need for an alternative to textLength? SVG output generating by svglite (e.g. ggplot graphs) with fixed textLength entries in their XML code result in corresponding text labels in the file to have fixed lengths. If letters of the text are deleted from these text boxes, the remaining text stretches to fill the space. The reverse is true for entering extra text. Removing the textLength entries in the XML code fixes the problem
The text was updated successfully, but these errors were encountered:
May be a related issue: when I import svg files to MS Word, text widths (or spaces between them) does not show correctly. Web browsers show them correctly, though.
@hyokangs yeah, word is horrible at rendering svgs - I don't think there is anything we can do about that
@svenyos I understand the issue but since we cannot predict how wide a text string is in different renders and the graphic engine uses the string width to position text we need a way to fix the width... I have a few ideas to fix this for standard alignment but I'm not sure it can be fixed generally
Fair enough. For anyone encountering this issue, one work around is replacing the term "textLength" to something unintelligible so that inkscape ignores it (by opening the SVG file in a text or XML editor and editing XML code directly). This removes the length constraint on text when rendered in inkscape. Not elegant but effective.
A need for an alternative to textLength? SVG output generating by svglite (e.g. ggplot graphs) with fixed textLength entries in their XML code result in corresponding text labels in the file to have fixed lengths. If letters of the text are deleted from these text boxes, the remaining text stretches to fill the space. The reverse is true for entering extra text. Removing the textLength entries in the XML code fixes the problem
The text was updated successfully, but these errors were encountered: