"middle" does not refer to the base line of the font
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gEDA |
Triaged
|
Medium
|
Unassigned |
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)>---
Changed in geda: | |
status: | Confirmed → Triaged |
Changed in geda: | |
importance: | Low → Medium |
I hope you meant "use the overall font metrics to middle-align the text" and not "make middle the same as lower"
Or better, just use the letter 'M' to determine middle alignment.