Increased terminal padding under precise: 160 columns of 8-pixel wide no longer fit at 72 point on 1280 pixel display

Bug #893174 reported by Alex Chiang on 2011-11-21
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Gnome Virtual Terminal Emulator
Invalid
Low
ubuntu-themes (Ubuntu)
Low
Unassigned
vte (Ubuntu)
Low
Unassigned

Bug Description

Laptop screen resolution is 1280x800.

Set gnome-terminal font to Ubuntu Mono 11.

In Oneiric, I was able to fit two terminals side by side without any overlap. In fact, they fit without overlap and without causing the launcher to autohide.

After upgrading to Precise, the terminals now push over into the launcher area, causing it to autohide, and even then, they still overlap. Notice the terminal on the right, the 'a' in 'achiang' is covered up by the terminal on the left.

Alex Chiang (achiang) wrote :
Paul Sladen (sladen) wrote :

My initial thought it is:

  11 pt * 96 DPI / 72 == 1320

  however that would give an overlap of ~40 pixels instead of 6 pixels. It's possible that the 6 pixels are accounted for by non-zero width borders.

summary: - Ubuntu mono appears larger under precise
+ Increased terminal padding under precise: 160 columns no longer fit at
+ 72 point
Paul Sladen (sladen) wrote :

The excess appears to be 1 pixel of border and 1 pixel of new internal padding each side of which terminal

summary: - Increased terminal padding under precise: 160 columns no longer fit at
- 72 point
+ Increased terminal padding under precise: 160 columns of 8-pixel wide no
+ longer fit at 72 point on 1280 pixel display
Pedro Villavicencio (pedro) wrote :

Could you please try to see if you get the same with terminator (terminal emulator) if so that's a vte issue.

Changed in gnome-terminal (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Alex Chiang (achiang) wrote :

terminator screenshot attached.

test procedure:

1) sudo apt-get install terminator
2) launch terminator, set preferences to use 'ubuntu mono 11' as font
3) close terminator
4) relaunch terminator
5) launch another terminator
6) resize both windows to 80 columns
7) attempt to fit both on screen without overlap - fail

Paul Sladen (sladen) wrote :

git clone git://git.gnome.org/vte
git show 31b4047a | grep -B6 -A3 '^\+.*inner-border'
+#if GTK_CHECK_VERSION (2, 99, 0)
+ klass->priv = G_TYPE_CLASS_GET_PRIVATE (klass, VTE_TYPE_TERMINAL, VteTerminalClassPrivate);
+
+ klass->priv->style_provider = GTK_STYLE_PROVIDER (gtk_css_provider_new ());
+ gtk_css_provider_load_from_data (GTK_CSS_PROVIDER (klass->priv->style_provider),
+ "VteTerminal {\n"
+ "-VteTerminal-inner-border: 1;\n"
+ "}\n",
+ -1, NULL);
+#endif /* GTK 3.0 */

commit 31b4047a51ac48264b735a8be24fdddd3b086acc
Author: Christian Persch <email address hidden>
Date: Wed Feb 2 18:45:41 2011 +0100

    Add default style provider

    This fixes the default value for the 'inner-border' property not
    to be NULL.

    Bug #640460.

"shrinking terminal on tab switch"
https://bugzilla.gnome.org/show_bug.cgi?id=640460

affects: gnome-terminal (Ubuntu) → vte (Ubuntu)
Changed in vte (Ubuntu):
status: Incomplete → Confirmed
Paul Sladen (sladen) on 2011-11-23
affects: ubuntu-font-family-sources (Ubuntu) → vte
Changed in vte:
importance: Undecided → Unknown
status: New → Unknown
Changed in vte:
importance: Unknown → Low
status: Unknown → New
Changed in vte:
status: New → Expired
Paul Sladen (sladen) wrote :

Alex: I've forwarded this upstream. If it's important to you, would you be able to state your case there?

Paul Sladen (sladen) wrote :

We can perhaps look into working around this with:

  VteTerminal { -VteTerminal-inner-border: 0; }

in light-themes.

Changed in light-themes (Ubuntu):
status: New → Incomplete
importance: Undecided → Low
Paul Sladen (sladen) wrote :

Should work; proposed solution (for light-themes) from Cimi:

  <Cimi> sladen, you can do that, then … just add a file named 'vte.css' in apps subdir of both themes … Add the right import in gtk.css and place your code above there

Changed in vte:
status: Expired → Invalid
Barry Warsaw (barry) wrote :

This has happened to me also in precise with Gnome Terminal. In oneiric, I used to be able to get two 80-wide Terminals next to each other with Ubuntu Mono 14 in a 1600x1200 screen. In precise, these overlap now and I have to bump them down to UM 13, which isn't as readable and also feels like there is more space between characters. Interestingly enough, I did not have to change my Emacs settings, where I have two 80-wide windows using UM with a "height" of 136 (Emacs claims they are 1/10 pt settings, so I'm not sure if those are 14pt, 13pt or 13.6pt - in oneiric they looked the same as 14pt in Terminal, IIRC).

I'll upload some precise screen shots soon.

Barry Warsaw (barry) wrote :

After chatting with Alex on IRC, this is definitely the same bug, so screen shots probably aren't necessary. Unfortunately, neither of us understand how to test out the workaround in comment #9 :/ Seems like upstream doesn't think this is a regression.

affects: light-themes (Ubuntu) → ubuntu-themes (Ubuntu)
Daniel van Vugt (vanvugt) wrote :

Thank you for reporting this bug to Ubuntu.
Ubuntu 12.04 (precise) reached end-of-life on April 28, 2017.

See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test.

Changed in vte (Ubuntu):
status: Confirmed → Incomplete
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.