[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



The reason "M" is better is because overall font metrics include EVERY
glyph, even ones that extend an unusual amount outside the "norm" for
the font.  I suppose you could use "font size" to come up with something
relative to the baseline, but that will require some tweaking to get
results that look good across a variety of fonts.

Also, "M" is most like what "everyone's existing schematics" is already
using, and is a decent representative of "average glyph size" even if
the "M" (or other iso-latin-1 glyphs) doesn't occur anywhere in the
string.

-- 
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