Misplaced EditableText in Template on Mac

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
wandererfan
Veteran
Posts: 6324
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Misplaced EditableText in Template on Mac

Post by wandererfan »

continued from https://www.forum.freecadweb.org/viewto ... 86#p316890
FBXL5 wrote: Sat Aug 03, 2019 11:23 pm I'm using MacOS and have issues with relocated editable texts when using "Insert new default Page" or "Insert new Page using Template":
The same relocation happens when altering an editable text on a correctly displayed page made with an older version.
It seems that the way svg files are rendered has been "improved" from 0.18... to 0.19...
This is not the same issue as the one on Windows in the original post.

No difference between v18.3 and v0.19(freecad-daily) here.
V018.3_A3_Landscape_ISO7200TD.png
V018.3_A3_Landscape_ISO7200TD.png (35.46 KiB) Viewed 1168 times
v019_A3_Landscape_ISO7200TD.png
v019_A3_Landscape_ISO7200TD.png (32.02 KiB) Viewed 1168 times
What template are you using?


OS: Linux Mint 19
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.3.
Build type: Release
Python version: 2.7.15+
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Canada (en_CA)

freecad-daily
OS: Linux Mint 19 (X-Cinnamon/cinnamon)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Python version: 3.6.8
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Canada (en_CA)
chrisb
Veteran
Posts: 54273
Joined: Tue Mar 17, 2015 9:14 am

Re: Misplaced EditableText in Template on Mac

Post by chrisb »

Everything ok here, 0.19 and 0.18 are alike and are alike with wandererfan's:
0.19_A3_Landscape_ISO7200TD.png
0.19_A3_Landscape_ISO7200TD.png (21.42 KiB) Viewed 1160 times
OS: macOS High Sierra (10.13)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.17499 (Git)
Build type: Release
Branch: master
Hash: 6b1be38f35686faf21e1015bf562520929890870
Python version: 3.7.3
Qt version: 5.9.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Germany (en_DE)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
FBXL5
Posts: 994
Joined: Sat Aug 03, 2019 8:45 pm

Re: Misplaced EditableText in Template on Mac

Post by FBXL5 »

I use FreeCADs Templates Ax_Landscape_ISO7200TD.svg or TestTemplate.svg to reproduce the error.
For the TestTemplate it doesn't matter if It's from the 0.18-16117 or the 0.19-17499 package.

TestTemplate opened with 0.18-16117:
Bildschirmfoto 2019-08-05 um 01.23.48.png
Bildschirmfoto 2019-08-05 um 01.23.48.png (44.32 KiB) Viewed 1137 times
TestTemplate opened with 0.19-17499:
Bildschirmfoto 2019-08-05 um 01.22.45.png
Bildschirmfoto 2019-08-05 um 01.22.45.png (44.66 KiB) Viewed 1137 times
In this case even the non-editable "A4" is misplaced.

OS: macOS 10.14
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.17499 (Git)
Build type: Release
Branch: master
Hash: 6b1be38f35686faf21e1015bf562520929890870
Python version: 3.7.3
Qt version: 5.9.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
User avatar
wandererfan
Veteran
Posts: 6324
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Misplaced EditableText in Template on Mac

Post by wandererfan »

FBXL5 wrote: Sun Aug 04, 2019 11:43 pm I use FreeCADs Templates Ax_Landscape_ISO7200TD.svg or TestTemplate.svg to reproduce the error.
For the TestTemplate it doesn't matter if It's from the 0.18-16117 or the 0.19-17499 package.
My copies of the ISO7200TD templates all display correctly in Inkscape. Please try the problematic templates in Inkscape and let me know if they look right.

Just clutching at straws here, but try the attached template, please.

Also, please post TestTemplate.svg. This is another long shot, but best to rule out a template problem.
Attachments
A3LISO_MacShiftedText.svg
(4.89 KiB) Downloaded 44 times
User avatar
FBXL5
Posts: 994
Joined: Sat Aug 03, 2019 8:45 pm

Re: Misplaced EditableText in Template on Mac

Post by FBXL5 »

Thanks for your efforts, but I found the error now: I was assuming that the newest templates were automatically used, but they weren't and I used outdated Templates. The up-to-date Templates work like expected.
The difference between older and newer templates is a piece of description in the svg files which is removed in the newer templates except the TestTemplate.svg:

<text
freecad:editable="FC-SH"...
...-inkscape-font-specification:Arial"
xml:space="preserve">

Just remove xml:space="preserve" from the <text> tags and the problem is solved.

This may be helpful for customised templates that misplace editable texts after switching to 0.19.
User avatar
FBXL5
Posts: 994
Joined: Sat Aug 03, 2019 8:45 pm

Re: Misplaced EditableText in Template on Mac

Post by FBXL5 »

Now that I know what to search for, I have found the "TechDraw Templates" page in FreeCADs Documentation (again after a while) and the last point under Notes deals with this issue. :roll:
Post Reply