[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-bug: [Bug 795130] Re: "middle" does not refer to the base line of the font



@ DJ: Yes, I meant, the marker should correspond to the middle of the font. This might be calculated as the mean height of all glyphs. If the height of base line and mid line are available,  these may be used to calculate some reasonable approximation to the mean height.
The vertical shift should depend on the font, not on the actual string.

@Peter Brett: Postscript output shows the same symptoms. See attachment.

---<)kaimartin(>---

** Attachment added: "postscript of alignment test"
   https://bugs.launchpad.net/geda/+bug/795130/+attachment/2163255/+files/textalignment.ps

-- 
You received this bug notification because you are a member of gEDA Bug
Team, which is subscribed to gEDA.
https://bugs.launchpad.net/bugs/795130

Title:
  "middle" does not refer to the base line of the font

Status in GPL Electronic Design Automation tools:
  Incomplete

Bug description:
  Currently, the middle option of vertical text alignment refers to the
  middle of the actual string.

  To reproduce:

  1) open gschem

  2) add three separate texts "aaa", "ppp" and "ZZZ" with the accel [at]

  3) put the alignment mark of the strings on the same vertical grid
  line. The base line of the letters coincides now. All three strings
  are on the same height.

  4) set the alignment of the texts to "middle-left".
  The strings will move up by different amounts. As a result, the "ZZZ" is lower and the "ppp" is  higher than the other "aaa".  A similar sub optimum vertical alignment happens with the "upper" options. See the attached screenshot.

  That way, a hyphen is rendered at the same height as an underscore.
  This is clearly not usefull in the context of  pin labels and
  generally symbol design.

  Proposed fix: Align the the text with reference to the base line. The
  "lower" options already do this.

  ---<)kaimartin)>---

To manage notifications about this bug go to:
https://bugs.launchpad.net/geda/+bug/795130/+subscriptions


_______________________________________________
geda-bug mailing list
geda-bug@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-bug