KevinTsui1234 / tint2

Automatically exported from code.google.com/p/tint2
GNU General Public License v2.0
1 stars 0 forks source link

Different line-heights for battery and clock #319

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Enable clock and battery areas
2. Set the same font+size for Battery font 1 and Clock font 1
3. Set the same font+size for Battery font 2 and Clock font 2

What is the expected output? What do you see instead?
Expect first line of Clock to be aligned with first line of Battery, and 
similarly for second line
Instead, the two lines in the clock area are further apart than the two lines 
in the battery area.

What version of the product are you using? On what operating system?
tint2 0.11-4 on Arch Linux (latest)

Please provide any additional information below.
I think this is a line-height issue, but cannot be sure.
The setup I'm trying it with is:
Font for line 1: DejaVu Sans Book 8
Font for line 2: DejaVu Sans Condensed 7

Original issue reported on code.google.com by j...@thesquareplanet.com on 6 Jan 2011 at 10:36

GoogleCodeExporter commented 8 years ago
can you post a screenshot of your problem.
because the code is the same and here don't see any difference.

Original comment by thilo...@gmail.com on 7 Jan 2011 at 3:46

GoogleCodeExporter commented 8 years ago
and post also your config file.
thanks

Original comment by thilo...@gmail.com on 7 Jan 2011 at 3:47

GoogleCodeExporter commented 8 years ago
I remember someone with a similar problem (can't remember the whole situation 
though), there was the problem that once the result was rounded up and once it 
was rounded down. The solution was to increase the panel by 1px.
However I remember that it wasn't obvious to me, why in one case the result was 
rounded down and in the other case rounded up...

Original comment by Andreas.Fink85 on 7 Jan 2011 at 3:54

GoogleCodeExporter commented 8 years ago
Attached is my config and a screenshot of the problem..

Increasing the panel size by one pixel did not help, neither did a two pixel 
increase.

Original comment by j...@thesquareplanet.com on 7 Jan 2011 at 4:09

Attachments:

GoogleCodeExporter commented 8 years ago
This bug is kind of tricky to deal with... Here is the problem description:
The position of the first clock line depends on the height of the second clock 
line, and the same is true for the battery status. The problem now: The height 
of the second line in the battery monitor is smaller than the height of the 
second clock line (because of the J,y in January).

Maybe we should take as measure for the height maximum values and not the 
values for the current text. What do you think Thierry?

Original comment by Andreas.Fink85 on 7 Jan 2011 at 4:55

GoogleCodeExporter commented 8 years ago
Not entirely sure, but could this be of help?
http://old.nabble.com/Help-understanding-Pango-layout-metrics-ts26237393.html

Original comment by j...@thesquareplanet.com on 7 Jan 2011 at 9:24

GoogleCodeExporter commented 8 years ago
yes we sould measure the maximum height.

Original comment by thilo...@gmail.com on 8 Jan 2011 at 9:18

GoogleCodeExporter commented 8 years ago
fixed in r319.

Original comment by Andreas.Fink85 on 8 Jan 2011 at 1:56