fritzing-app icon indicating copy to clipboard operation
fritzing-app copied to clipboard

"Net label" text is cut off in Schematic view

Open fluidblue opened this issue 3 years ago • 5 comments

Current Behaviour

Texts of net labels are cut off, when the text is longer than a few characters. Screenshot

Build: Version 0.9.9 (bCD-348-0-f0af53a9 2021-09-22) Cocoa [Qt 5.15.2]

Operating System: macOS 11.6.3 Big Sur

Steps to reproduce:

  • Create a new project and go to Schematic view
  • Search parts for "net label" and add a new "net label".
  • Enter long text in the label property, e.g. "lorem ipsum dolor sit amet"

Expected Behaviour

The net label's text should be shown completely.

fluidblue avatar Mar 20 '22 00:03 fluidblue

I could not reproduce this in 0.9.9 or 0.9.10 (Windows). Is this a MacOS specific bug? image

failiz avatar Jun 19 '22 10:06 failiz

Imported screenshot link from imgur image

I could reproduce the issue on macOS Ventura, Fritzing 0.9.10

KjellMorgenstern avatar Nov 16 '22 22:11 KjellMorgenstern

Comparing Macos (above) and Linux (below). Both have roughly the same font size at 990% zoom, but the NetLabel on MacOS is too small.

image

KjellMorgenstern avatar Sep 08 '23 09:09 KjellMorgenstern

I wonder if we could change to a monospaced font to make our life easier and fix this problem and https://github.com/fritzing/fritzing-app/issues/3630.

failiz avatar Jan 04 '24 23:01 failiz

Fritzing has a method to calculate bounding boxes in SVGText. This is implementation is probably now obsolete: The missing bounding box implementation was added to Qt with v6.2.

Most of these kind of bugs are not related to the font width directly, but svg transforms, styles, using a fallback font (this one looks suspiciously like a fallback font that is simply not installed on macos) .

KjellMorgenstern avatar Jan 05 '24 07:01 KjellMorgenstern