After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 675348 - line number gutter is clipped for large fonts
line number gutter is clipped for large fonts
Status: RESOLVED DUPLICATE of bug 687415
Product: gedit
Classification: Applications
Component: general
3.4.x
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
: 669672 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-05-03 07:08 UTC by Reece H. Dunn
Modified: 2013-05-19 18:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Reece H. Dunn 2012-05-03 07:08:33 UTC
Initial test setup:

1.  Select the |Edit > Preferences| menu
2.  Select the |View| tab
3.  Enable the |Display line numbers| option
4.  Select the |Fonts & Colours| tab
5.  Change the |Editor font:| option to the font specified in the test case (see below)
6.  Press the |Close| button
7.  Open test file A with at least more than one line
8.  Go to the end of the file

Steps to reproduce:

1.  Select the |Edit > Preferences| menu
2.  Select the |Fonts & Colours| tab
3.  Change the |Editor font:| option to the font specified in the test case (see the TEST CASE items below)
4.  Press the |Close| button
5.  Note the rendering of the line gutter on file A at the end of the files (see the OBSERVATION items below)
6.  Open test file B with at least more than one line
7.  Go to the end of the file
8.  Note the rendering of the line gutter on file A and B at the end of the files (see the OBSERVATION items below)
9. Close test file B

TEST CASE #1: Run the test using the [Liberation Mono |10] font

OBSERVATION #1A: The file A line number gutter has spacing either side of the numbers (EXPECTED BEHAVIOUR).

OBSERVATION #1B: The file B line number gutter has spacing either side of the numbers (EXPECTED BEHAVIOUR).

TEST CASE #2: Run the test using the [Liberation Mono |12] font

OBSERVATION #2A: The file A line number gutter has spacing on the right hand side of the numbers, but is clipped on the left hand edge (clipping varies depending on the number of characters shown in the gutter).

OBSERVATION #2B: The file B line number gutter has spacing either side of the numbers (EXPECTED BEHAVIOUR).

TEST CASE #3: Run the test using the [Liberation Mono |18] font

OBSERVATION #3A: The file A line number gutter has spacing on the right hand side of the numbers, but is clipped on the left hand edge (clipping varies depending on the number of characters shown in the gutter). The clipping is more noticeable here.

OBSERVATION #3B: The file B line number gutter has spacing either side of the numbers (EXPECTED BEHAVIOUR).

CONCLUSION: Changing font size on an open file clips the font on the left hand edge. This should not happen -- the gutter should be correctly calculated based on |font-size(max line chars)| + left padding + right padding. It looks like the gutter is calculated based on the font size when the file was initially opened (compare the results between file A and B).
Comment 1 Robert Roth 2012-07-28 10:52:00 UTC
*** Bug 669672 has been marked as a duplicate of this bug. ***
Comment 2 Sébastien Wilmet 2013-05-19 18:11:03 UTC
Attachment #227875 [details] is clearer.

*** This bug has been marked as a duplicate of bug 687415 ***