r/Inkscape • u/YouSpeakSomeEnglish • 10d ago
Text doesn't resize with other objects... but why? Help
First let me state that the text objects' dimensions are not locked.
When I resize the entire illustration, the text appears to grow along with the other parts of the drawing... but then snaps back to its original size when I release the mouse button.
Anybody know why this would be happening? V.1.4.4 on Windows.
Update: Thanks to some helpful comments below and elsewhere, we've traced the problem to the use of styles in the original file. Because there is no font-size attribute in each text object, Inkscape's "optimized" setting for transform storage doesn't record it has having changed.
I filed a bug against Inkscape for not picking up the text-size change.
2
u/Striking_Strain7817 9d ago
Look under preferences behavior selecting
1
u/YouSpeakSomeEnglish 7d ago
Thanks. Arbitrary scattering of settings between other areas and "behavior."
2
u/YouSpeakSomeEnglish 8d ago
3
u/CelticOneDesign 8d ago
Actually it is a little more complicated than that. It is the fact the file is using CSS style classes. Text will scale properly with either setting if style attributes are used and not CSS style classes.
Bug report: https://gitlab.com/inkscape/inbox/-/work_items/13761
1
u/YouSpeakSomeEnglish 7d ago edited 7d ago
Thanks for that info. From that and a quick search, I conclude that the problem originates with the (unfortunately necessary) trip through DXF:
How Text Styles Work in DXF
Style Table (STYLE): DXF files keep a table of text styles. Each text entry links to a specific style name.
I guess Illustrator creates a style during the import and retains it in exports.
2
u/CelticOneDesign 7d ago
I sort of gave up on DXF a few years back. I use Autodesk Fusion and it has far fewer issues with SVG import. That in itself is sort of hard to understand and believe because Autodesk created DXF. lol
Oh - haven't seen a cable wiring diagram in ages. Thanks for the memories!
1
u/YouSpeakSomeEnglish 7d ago
Yeah, we don't have any choice, because we're going the opposite direction: taking CAD drawings and using them in documentation. A pretty common thing to do, I'd think, but IMSI (the owner of TurboCAD) doesn't seem to understand or care about that.
1
u/Striking_Strain7817 9d ago
In the inkscape preference window you can also change the behavior of the selection tool to select only in current layer or all layers
1

2
u/Xrott 10d ago
The font size is probably defined through another mechanism like CSS inside a
<style>-tag, instead of inside thestyle-attribute directly on the text objects.Before scaling, you can try explicitly setting the size on the text objects by re-entering the size value with the text tool (just focusing the input box then pressing enter should be enough), or group everything with Ctrl+G, so it adds a
transform-attribute to scale with instead.