Make the login dialogue bigger? #2280
-
The login dialogue is too small, especially when using a 4K monitor. I can hardly see the text. Even if it cannot resize itself intelligently depending on the resolution and DPI, since there is a lot of empty space, if only I could simply double the size, it would be much better. |
Beta Was this translation helpful? Give feedback.
Replies: 16 comments 50 replies
-
I also think that needs to be addressed. |
Beta Was this translation helpful? Give feedback.
-
There's also the point that if NLA was working (which I admit we are a long way from), this dialog would be less needed anyway. |
Beta Was this translation helpful? Give feedback.
-
I use xrdp as my RDP Proxy gateway. The size of the login screen is defined in the Globals section of xrdp.ini.
However, it does not seem to be possible to change the font size. A quick check of the source code shows that
|
Beta Was this translation helpful? Give feedback.
-
@TOMATO-ONE - I've done a bit of analysis on the .fv1 file. From what I can tell, the status of this is:-
It should be possible to port the fontdump utility to Un*x by using something like the freetype2 library. This is a dependency of the X server in any case, so adding this in to xrdp isn't going to cause any additional difficulties. That might be easier than trying to get fontdump built on Windows. We're going to need something like this anyway in the future - see #1637 for some thoughts I've had on this earlier, in particular this post I'm a bit stalled on some other work at the moment due to personal commitments, but I'll have a look at the above. |
Beta Was this translation helpful? Give feedback.
-
I've got a font dump program for fv1 files working now, which is a necessary step to solving problems with new font files. Next step is to get a font file created, which I'm relatively close to, I think. The code is a bit of a mess at the moment, but I'll tidy it up as I'm going along. |
Beta Was this translation helpful? Give feedback.
-
Here's my first attempt at making sans-10.fv1 using a UNIX program:- I'm not sure exactly what's going on in the painter to cause this, but I suppose it's progress of sorts! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
OK - I've managed to get a few hours in this afternoon to tidy up xrdp-mkfv1 You need to build xrdp with
Here's an example of generating a big font:-
Then look at characters with the dump program. Here's what the 'A' character looks like:-
Here's a bold big font:-
I still need to add manpages, but this should be usable. If you want one that works without painter modifications let me know and I'll add a compatibility switch to the font generator. |
Beta Was this translation helpful? Give feedback.
-
Latest pushes add manpages for xrdp-mkfv1 and xrdp-dumpfv1. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
With some rejigging, I've got this:- Code is on the usual branch. It shows what's possible, but I'm not at all happy that the user has to hack the xrdp.ini file about to get this to work. It makes upgrades harder (which is not good), and on shared servers with some high-res displays and some low-res displays there are still no good solutions. I think a better solution might be to work out a font to load for the display, and then apply a scaling factor to the parameters in xrdp.ini so that the user doesn't have to edit anything. Initially we can go with a couple of fv1 fonts, and then later work out how to properly use a TrueType font. @TOMATO-ONE - I'd appreciate your thoughts on this. |
Beta Was this translation helpful? Give feedback.
-
More internal stuff done now that I didn't know I needed to do. When xrdp is built with The font utilities are also updated, but the manpages aren't. I'm going to get those done next. The next thing before this is ready for more serious testing is the font selector. My current thinking is that I use a string like the following in xrdp.ini
I'm just sticking with two fonts for now in the standard distribution, as these files are still quite large - I think sans-18.fv1 should be quite readable on a 24 inch 4K monitor which is around 183dpi I think. Users can add others if they feel the need. What do you think @TOMATO-ONE ? |
Beta Was this translation helpful? Give feedback.
-
Another update - the code to read physical monitor sizes is somewhat incomplete in xrdp_sec.c. In particular, the TS_UD_CS_MONITOR_EX PDU is not processed during client startup, and as a result, with a two screen Windows client, the DPI information is not available. This needs to be fixed, as this is a fairly common configuration. I'll work on a separate PR to implement the processing of TS_UD_CS_MONITOR_EX, and then rebase by font work off of that one. |
Beta Was this translation helpful? Give feedback.
-
Sorry about the radio silence @TOMATO-ONE. I've been away, and then I caught something nasty. All OK now. I've just pushed an update to the branch which I think is just about there. It adds a font file sans-18.fv1 which it loads for 130 DPI or more. The login screen is scaled appropriately. Minor changes only are needed for the config files. It needs a bit more work, to better document the fv1 file format, and to sort out the commit history which is a real mess. Feel free to give it a go and let me know what you think. |
Beta Was this translation helpful? Give feedback.
-
See #2341 |
Beta Was this translation helpful? Give feedback.
-
THe above PR has now been merged into devel. See also https://github.com/neutrinolabs/xrdp/wiki/Scaleable-login-screen |
Beta Was this translation helpful? Give feedback.
I use xrdp as my RDP Proxy gateway.
So I can agree with Hubking's opinion.
The size of the login screen is defined in the Globals section of xrdp.ini.
The size can be increased by setting appropriate values.
However, it does not seem to be possible to change the font size.
A quick check of the source code shows that
I think the font used in dialogues etc. is sans-10.fv1.