fritzing / fritzing-app

Fritzing desktop application
http://fritzing.org
Other
4.04k stars 834 forks source link

horizontal flipped net label exporting to svg offset from label box #3642

Closed mMerlin closed 1 year ago

mMerlin commented 4 years ago

Current Behaviour

A net label in the schematic view, flipped horizontally, looks ok on screen. The label text is maybe shifted a little to right, but not bad. However, when exported to svg, the text of the flipped label is positioned relative to the start of the arrow, instead of relative to the box the label is supposed to be in.

Fritzing 0.9.4b schematic screenshot flipped-net-label-9 4b

Fritzing 0.9.5 schematic screenshot flipped-net-label-9 5

Fritzing 0.9.4b schematic svg export, renamed to append .zip the filename flipped-net-label-9.4b.svg.zip

Fritzing 0.9.5 schematic svg export, renamed to append .zip the filename flipped-net-label-9.5.svg.zip

screenshot of 0.9.4b export svg in viewer flipped-net-label-exported-9 4b

screenshot of 0.9.5 export svg in viewer flipped-net-label-exported-9 5

Build:

Fritzing version 0.9.4.2019-12-01.CD-498 - Qt version 5.13.2 Version 0.9.5 (dCD-548-1-gcc8758a1 2020-02-15) 64 [Qt 5.13.2]

Operating System:

NAME=Fedora VERSION="31 (Workstation Edition)" ID=fedora VERSION_ID=31 VERSION_CODENAME="" PLATFORM_ID="platform:f31" PRETTY_NAME="Fedora 31 (Workstation Edition)" ANSI_COLOR="0;34" LOGO=fedora-logo-icon CPE_NAME="cpe:/o:fedoraproject:fedora:31" HOME_URL="https://fedoraproject.org/" DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f31/system-administrators-guide/" SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help" BUG_REPORT_URL="https://bugzilla.redhat.com/" REDHAT_BUGZILLA_PRODUCT="Fedora" REDHAT_BUGZILLA_PRODUCT_VERSION=31 REDHAT_SUPPORT_PRODUCT="Fedora" REDHAT_SUPPORT_PRODUCT_VERSION=31 PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy" VARIANT="Workstation Edition" VARIANT_ID=workstation

Steps to reproduce:

Expected Behaviour

The exported net label text should be aligned in the body of the label box, excluded the arrow. From manual exploration of the exported svg, the x value should be about "3", instead of "0.48".

KjellMorgenstern commented 2 years ago

Related to #3186 (and part of the fix). However some platform dependency issues with font sizes seem to remain.