Red Hat Bugzilla – Bug 136428
Pango 1.6.0-4 returns unvarying line heights in SWT and Eclipse
Last modified: 2007-11-30 17:10:52 EST
Description of problem:
SWT in Eclipse uses Pango to calculate line heights for its text
editor, or at least that is what I could tell from
After upgrading to Pango 1.6.0-4, the line heights in Eclipse became
fixed to 10pt regardless of the font size.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Use Eclipse with Pango 1.6.0-3 or below. Change the line height in
the text editor to different sizes such as 9pt, 20pt, 48pt, 8pt, and
so forth. Exit Eclipse.
2. Upgrade to Pango 1.6.0-4
3. Run Eclipse. Try the steps in Step 1 again and notice that the line
height never changes even though the font size changes.
If the font is set to a high point size, the fixed line height of
approximately 10pt makes the text almost invisible as you only see the
top parts of the characters. If the font is set below 10pt, you see
the font, but the lines are too high. If you set the font to 10pt, it
Line height should adjust depending on the font's point size.
I think it may have been caused by the "Move place where we compute
fontset metrics to fix problems with line height in CJK locales
Thanks a lot for catching this ... pango-1.6.0-5 (currently building,
should be in Raw Hide within the next day) has a fix:
* Tue Oct 19 2004 Owen Taylor <email@example.com> - 1.6.0-5
- Fix problem in the last patch where we weren't getting the metrics
right font description (#136428, Steven Lawrance)
Confirmed that Eclipse's text editor has proper line heights in
1.6.0-6. Thanks for the quick solution :-).