Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-09-13 01:38:31

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 819

another bug in xfce4-terminal

i tend to be a person who "pushes things to the edge".  in this case i'm not sure of the condition causing this.

i have written a script in python3 to launch xfce4-terminal in the background after processing a series of arguments to make starting new terminals easier on command lines and in desktop files.  one of the things it does is takes any number under 100 as the font size i want to use.  it sets the --font= command option on xfce4-terminal and also an environment variable so scripts can know the value.  initially, i am trying out an extension to my .bashrc script that records the font size, number of columns, and number of rows, into a file so that in the future i can have the launch script figure out the font size to use for a desired character cell geometry.

i have tested this script by running it one terminal at a time and also by running loops in a longer bash command to try the script with a wide range of sizes.  the latter is where i see this latest bug.  for specific font sizes 32 and 33 (but not for others from 1 to 40 inclusive) it window opens narrower than expected with only 38 columns.  the number of rows seem normal.  when i use these two font sizes running the script directly it often, but not always, opens full width.  it is running the xfce4-terminal like this:

xfce4-terminal --geometry=2560x480 --disable-server --hide-menubar --font=32

the options do not change between wide and narrow terminal.

here is the list of 40 font sizes:

1 1918 343
2 959 257
3 959 205
4 639 147
5 479 114
6 383 102
7 319 85
8 319 79
9 274 68
10 239 60
11 213 57
12 191 54
13 191 46
14 174 44
15 159 42
16 147 39
17 137 36
18 137 35
19 127 34
20 119 32
21 112 31
22 106 29
23 106 27
24 100 27
25 95 26
26 91 24
27 87 23
28 87 23
29 83 22
30 79 21
31 76 21
32 38 19
33 38 18
34 71 19
35 68 18
36 66 18
37 63 17
38 61 17
39 61 16
40 59 16

notice the sizes at line 32 and line 33.  these are the values stored in the case of a narrow window.  font sizes 27 and 28 actually are very slightly different vertically.  just not enough to make to make a difference in the number of rows.  they do have the same width (as do a few other pairs: 12/13, 22/23, 27/28, 32/33, 38/39).  i wonder if these fonts need some re-design.  next, i will be trying the --zoom= settings.

Offline

Board footer

Powered by FluxBB