! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Incorrect screen size when both font and geometry set on command line
Status:
RESOLVED: FIXED
Product:
Xfce4-terminal
Component:
General

Comments

Description Mark Olson 2019-08-22 16:03:17 CEST
When both the font and geometry is set on the command line, the screen size is not set correctly.

The specific command line I am using is:

xfce4-terminal --font="Monospace Bold 120" --geometry=16x2 --execute telnet foohost 1024

If I try to resize the screen using the mouse, the hint displays nonsensical values  (e.g. 45x3), and the size does not adjust by integral character sizes.

If I select the "Preferences..." option from the Edit menu, as soon as the Terminal Preferences pane opens the terminal resizes itself to the correct size, and resizing of the screen with the mouse works correctly.

The order in which the options are specified on the command line does not make any difference.

What it looks like to me is that the application is picking up the font request correctly, but is not updating it's internal character cell parameters. Opening the Preference pane causes it to update it's internal values, which corrects the screen size and behavior.

This is new behavior in version 0.8.7.4 as distributed with Raspian Buster. This functionality worked correctly in the version that was distributed with Raspian Stretch.
Comment 1 Mark Olson 2019-08-22 16:45:33 CEST
1) Should clarify that correct font is used, it is the screen size that is wrong.

2) Confirmed that rolling xfce-terminal back to 0.8.3 resolves the issue.
Comment 2 Git Bot editbugs 2019-08-22 18:16:17 CEST
Igor referenced this bugreport in commit 8edfe5792a0a1e5b58ea7456136e3cb662ff7d91

Fix setting a font via the command line

https://git.xfce.org/apps/xfce4-terminal/commit?id=8edfe5792a0a1e5b58ea7456136e3cb662ff7d91
Comment 3 Igor editbugs 2019-08-22 18:19:02 CEST
Hi Mark, thanks for the report!

The font/zoom/geometry alignment has indeed been broken for some time now.
Commits https://git.xfce.org/apps/xfce4-terminal/commit/?id=d6ffd7f638935585340edf8eec104730cbed122d and https://git.xfce.org/apps/xfce4-terminal/commit?id=8edfe5792a0a1e5b58ea7456136e3cb662ff7d91 fix the issue in git master.
Comment 4 Mark Olson 2019-08-22 18:31:23 CEST
Thank you for the quick response. Will await it to make it's way through Debian and Raspbian.

Mark Olson

Bug #15869

Reported by:
Mark Olson
Reported on: 2019-08-22
Last modified on: 2019-08-22

People

CC List:
0 users

Version

Version:
0.8.7.4

Attachments

Additional information