GUI is messed up

Bug #778048 reported by MrPotter
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
keepass2 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: keepass2

After installing keypass2 on my Ubuntu 10.10 with kernel 2.6.35-28-generic the program starts but gui is unusuable. The font size is too large. Please see attached picture. I followed your instructions on your forums (http://sourceforge.net/projects/keepass/forums/forum/329220/topic/4503818)

My system uses the default Ubuntu font so there is no misconfiguration.

Revision history for this message
MrPotter (mrpotter) wrote :
Revision history for this message
Julian Taylor (jtaylor) wrote :

can you try this in a terminal please:

export MONO_MWF_SCALING=disable
keepass2

Julian Taylor (jtaylor)
Changed in keepass2 (Ubuntu):
status: New → Incomplete
Revision history for this message
MrPotter (mrpotter) wrote :

sorry for my late reply.
i tried your command in a terminal but unfortunately there is no change ...

Revision history for this message
Julian Taylor (jtaylor) wrote :

I can't reproduce this on my system. Do you have any non-default changes to your fonts?
what are your font/dpi setting:
System -> Preferences -> Appearance -> Fonts -> Details.

Revision history for this message
Julian Taylor (jtaylor) wrote :

Comment from upstream author:
KeePass tries to detect the system font (in UISystemFonts.UnixLoadFonts); I could imagine that this detection somehow fails. An easy way to see whether the issue is caused by this is to disable the option "Force using system fonts (Unix only)" in the options ('Interface' tab) and restarting KeePass.

Revision history for this message
MrPotter (mrpotter) wrote :

@Julian: it was very difficult to navigate to the interface panel, but after I unchecked the checkbox it works!
Maybe its better to disable this setting by default? Anyways, thank you very much for your support!!

Revision history for this message
Julian Taylor (jtaylor) wrote :

glad your problem was solved.
Before changing default I'd like to understand what happens. It seems to work for most people.
What is your dpi setting? (see comment 4)

btw. you can also change the setting in the configuration file in $HOME/.config/KeePass/KeePass.config.xml
<UI>
<ForceSystemFontUnix>true</ForceSystemFontUnix>

options are true or false

Revision history for this message
MrPotter (mrpotter) wrote :

thanks for the useful tip.
in the attachement you will find a screenshot of my current dpi-settings.

Julian Taylor (jtaylor)
Changed in keepass2 (Ubuntu):
status: Incomplete → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in keepass2 (Ubuntu):
status: New → Confirmed
Revision history for this message
Nosphky (philip-jackson) wrote :

I think my problem is related to this bug reference. I have KeePass2 v2.25 in UbuntStudio 14.04 and in Ubuntu Desktop 14.04. On both of theses pcs, the KeePass2 display is very difficult to read - the fonts are too small and don't seem to respond to system font sizes in system settings.

I had already tracked down the config file in :

$HOME/.config/KeePass/KeePass.config.xml

and there I found inappropriate settings in the default installation in both machines. The fonts described are not present in my default UStudio distribution nor in the Desktop distrib. They are :

StandardFont : Microsoft Sans Serif
PasswordFont : Courier New
DataEditorFont: Microsoft Sans Serif

all three at 8.25 size - much too small for my eyes.

I edited the .xml file to remove the line '<ForceSystemFontUnix>true</ForceSystemFontUnix>' ie I set it to 'true'.

In UStudio : I replaced Microsoft Sans Serif with 'Verana Sans' and Courier New with 'Courier 10 Pitch'

Curiously, I found that the fonts in Desktop 14.04 are not the same as those in UbuntuStudio 14.04. In Desktop I found another couple of fonts to do the job.

Setting sizes to 10 or 11 was ok for me.

Revision history for this message
Eero (eero+launchpad) wrote :

This is quite annoying. I can't see any of the numbers properly. For example in this attached file you can see a window with number 2085, but if I select it and copy&paste to gedit, the number shows up as 2085695.

Revision history for this message
GHPS (software-sw) wrote :

I had the same problem with KeePass 2.25 under Kubuntu 14.04: The fonts were huge and the menus unusable.

However the solution was contrary to the one suggested here:

<ForceSystemFontUnix>false</ForceSystemFontUnix>

Now the program works fine - only the Entry View pane uses a large font. An annoyance I can
live with...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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