Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to change font size #621

Closed
rafan opened this issue Jun 4, 2017 · 52 comments
Closed

Allow to change font size #621

rafan opened this issue Jun 4, 2017 · 52 comments

Comments

@rafan
Copy link

rafan commented Jun 4, 2017

No current way to adjust font size in preference setting.

Expected Behavior

Preference should allow user to change the font size.

Current Behavior

No font size setting in preference.

Possible Solution

Allow user to set UI font size in preference setting.

Steps to Reproduce (for bugs)

n/a

Context

Would like to use larger font size.

Your Environment

  • KeePassXC version/commit used: 2.1.4 cb283bb
  • Qt version (e.g. Qt 5.3): Qt 5.8.0
  • Compiler (e.g. Clang++3.6.0): n/a
  • Operating System and version: Windows 10
@O-Gopal
Copy link

O-Gopal commented Jun 26, 2017

Yes, please. For me the small font is a deal-breaker.
KeepPassXC 2.2.0. Ubuntu 16.04.

@TheZ3ro
Copy link
Contributor

TheZ3ro commented Jun 26, 2017

@O-Gopal can you post a screenshot?

@droidmonkey
Copy link
Member

There is a qt configuration tool that changes the default font size for all qt apps.

@O-Gopal
Copy link

O-Gopal commented Jun 28, 2017

keepassxc--screenshot-1

Screenshot attached.

I found the QT5 configuration tool. But it's not in the Ubuntu repos, and at this point installing from a tarball is beyond my skill set. (Also: Changing the default font size for _all _ apps is not what I want to do.

Thank you.

@phoerious
Copy link
Member

phoerious commented Jun 28, 2017

I edited your post. Please don't post screenshots of your actual password database. Use a mock database for that or at least pixelate your entries and groups.

@O-Gopal
Copy link

O-Gopal commented Jun 28, 2017

Thank you, phoerious. That was helpful. I've attached a new screenshot to that text.

@CosmicToast
Copy link

In the meanwhile, you can simply set the DPI scaling for QT to a custom value.

On windows 10, you'd do this [edit environment variables (searchable)] -> Environment Variables -> for $user.

The value you want to set it QT_SCALE_FACTOR.

@user23498723452
Copy link

Hoping to see progress on this. The single font size is annoying. I'm not very interested in hacking QT5. Is this on the backlog or is this consider infeasible?

@sorokine
Copy link

sorokine commented Dec 9, 2018

As a low vision person I strongly support this feature. As a quick fix on Linux start the program as:

QT_SCALE_FACTOR=2 keepassxc

@jamie-cyc
Copy link

Would be great to hear of an update on this - as a low vision person too it definitely poses a challenge having it so small.

@droidmonkey
Copy link
Member

This will be worked as part of v2.5.0 as it is addressing multiple accessibility concerns

@jamie-cyc
Copy link

@droidmonkey Thanks - I often forget with this being open source that I shouldn't make comments as though it's a commercial product. I am massively thankful for the work that you all do to provide such a fantastic solution for free with open code.

@droidmonkey
Copy link
Member

We actually received funding from a non-profit org to address accessibility issues, so you can expect results in this case 😁

@jamie-cyc
Copy link

@droidmonkey Ah that's actually brilliant - I can tell you that I definitely benefit from KeePassXC and if it were to better meet my accessibility requirements it would be even better. :)

@sebast889
Copy link

@droidmonkey that's nice to hear about the funding. Is it possible to get some sort of .md file or wiki entry about any funding the project receives? I think that would be good for transparency sake

@hiredgunhouse
Copy link

+1
I'd love to switch to KeePassXC, but the font size is a deal breaker for me too.
Looking forward to release of 2.5.
Also thank you for your hard work!

@DanMan
Copy link

DanMan commented Jul 9, 2019

It wouldn't need a font size setting on Gnome, if it adhered to its font settings. I can change the fonts in the Gnome tweak tool all I want, but that doesn't change anything in KeePassXC, and in my case the text is too big.

But maybe this ought to be a Qt<>Gtk interoperability fix. For now, it works well with QT_FONT_DPI=96.

@droidmonkey droidmonkey modified the milestones: v2.5.0, v2.6.0 Oct 15, 2019
@jnardone
Copy link

2 years and still can't do this? :(

@phoerious
Copy link
Member

IMHO, this is something you should configure in your system. KeePassXC uses whatever font size you set there. If KeePassXC is too small, so is probably the rest of your desktop.

@vsund
Copy link

vsund commented Nov 14, 2019

@phoerious at least for me, the font size in KeepassXC is smaller than the one in KeePassX (and also smaller than the rest of the system). I also tried using the previously mentioned QT_SCALE_FACTOR but the font gets blurry, so I still didn't made the switch to KeePassXC yet.

@phoerious
Copy link
Member

Make sure you have correct font settings for non-GTK apps.

@vsund
Copy link

vsund commented Nov 14, 2019

Make sure you have correct font settings for non-GTK apps.

Whoa, you're totally right. I needed to update the settings which make Qt look like GTK for working correctly with Qt 5.

To be honest, I didn't look much into my settings because KeePassX/Qt4 worked as expected. Thanks for the nudge in the right direction ;)

@regisz
Copy link

regisz commented Jan 21, 2020

Qt Settings is solved my "too big" font problem.

@hi-ko
Copy link

hi-ko commented Jan 30, 2020

I fixed this in ubuntu 18 by installing the qt5 config tool and the common Windows font:

  • sudo apt install qt5ct
  • install expected fonts (e.g. SegoeUI as Windows default UI font)
  • set export QT_QPA_PLATFORMTHEME=qt5ct
    you should put this in your .profile
  • run qt5ct and configure fonts you like

@droidmonkey droidmonkey modified the milestones: v2.6.0, v2.6.1 Apr 2, 2020
@droidmonkey
Copy link
Member

We follow UI settings for the Operating System now in 2.6.0.

@droidmonkey droidmonkey removed this from the v2.6.1 milestone Jun 4, 2020
@O-Gopal
Copy link

O-Gopal commented Jul 13, 2020

Beautiful. Many thanks to the devs!

@mediaDS
Copy link

mediaDS commented Aug 20, 2020

In Windows 10 the UI font seems to be ok but the font for notes is way too small - no matter what I do in the OS. It is almost unreadable. There should be an option to change font size in the settings - and not qt5.

@LinuxOnTheDesktop
Copy link

QT_SCALE_FACTOR [in Windows]

Some notes on this, for other users.

  1. I had to create the string for the value.
  2. The value of 1.25 was accepted and used.
  3. I did not need to log off and log on again, though perhaps that is because I used a program called 'Rapid Environment Editor' to set the value.

@LinuxOnTheDesktop
Copy link

We follow UI settings for the Operating System now in 2.6.0.

Hmm. I have 2.6.1 on Windows 10. I have a 'custom scaling' of 125:

image

(The image's blurriness is an artefact of my having scaled it to post it.) Yet, I had to use the environmental variables hack to make the text larger - large enough for me to read easily, and larger (I am fairly sure) than it was pre-version 2.6.

@LorenzoTa
Copy link

I've read this thread but I did not understand why it is not possible have a menu ( options->interface->font) entry to choose the font and its size.

the ENV trick works..
cd "c:\Program Files\KeePassXC"

set QT_SCALE_FACTOR=1.25

KeePassXC.exe

..but an appropriate menu for this configuration will be much better.

Win10 KeePassXC.exe v 2.6.1

Anyway thanks for this wonderful program!

@CYBRPVNK
Copy link

I've read this thread but I did not understand why it is not possible have a menu ( options->interface->font) entry to choose the font and its size.

the ENV trick works..
cd "c:\Program Files\KeePassXC"

set QT_SCALE_FACTOR=1.25

KeePassXC.exe

..but an appropriate menu for this configuration will be much better.

Win10 KeePassXC.exe v 2.6.1

Anyway thanks for this wonderful program!

The Qt environment variable changes the scaling for all programs which use Qt renderer. KeepassXC might work fine with this scaling but it could break other programs. It might not even work in a different setup.

@awesomer
Copy link

In Windows 10, if one wants KeepassXC to start with scaled UI with the Start Menu shortcut, one can edit the "Target" to say :

C:\Windows\System32\cmd.exe /c set QT_SCALE_FACTOR=1.25 && "C:\Program Files\KeePassXC\KeePassXC.exe"

It will, unfortunately, also pop up a CMD window, but you can immediately close this and KeePassXC will continue to run.

@peter-fb
Copy link

On Windows, the font size of the UI as a whole is OK, but the font size for notes is way too small.

@inkista
Copy link

inkista commented Mar 23, 2021

Quick fix for Windows 10 users: Settings > Basic Settings, scroll down to User Interface, and select the Use monospaced font for notes checkbox. The font size will now be proportional to font used in the rest of the UI.

For devs: the proportional font in Notes is not set/scaled properly vs. the monospace one:

proportional

monospace

@tredondo
Copy link

We follow UI settings for the Operating System now in 2.6.0.

One reason I think this may not be a comprehensive fix, is: users may have left the "UI settings for the OS" alone, because most other apps they use, have font scaling. I don't recall ever changing the font scaling in KDE, but LibreOffice, browsers, IDEs, and anything else I use with fonts that I want to scale up, has a setting to scale them up.

KeepassXC notes still look tiny. The font of the Notes field is visibly smaller than the font of the menu.

QT_SCALE_FACTOR=1.25 keepassxc works though, so I guess this issue won't be reopened.

@droidmonkey
Copy link
Member

There was a bug in the notes when using monospaved fonts. That is fixed for next release.

@tredondo
Copy link

I've been using proportional fonts. This is what they look like with 1.25 QT scaling - maybe normal?

image

@droidmonkey
Copy link
Member

Those look consistent and normal. Your scaling really depends on your base font size.

@Teknomancer
Copy link

Teknomancer commented Oct 12, 2021

Unfortunately using QT_SCALE_FACTOR (or other environment variables) on Windows is not optimal.

  1. Setting it per-user, means it affects ALL QT apps (not just KeePassXC) and that is a problem in and of itself. It's not really an option if it breaks other Qt apps.

  2. Setting it only for the KeePassXC shortcut by launching a cmd.exe with the environment variable and using the Run as "Minimize" window option is still not correct because while it launches fine, every time you minimize the KeePassXC window the cmd.exe window pops back up. Thus, even restricting the environment variable to KeePassXC leads to this sub-optimal behavior.

Please consider offering an option to choose the font and font size for UI elements.

@Bibelo
Copy link

Bibelo commented Mar 8, 2022

Really surprised that this problem which affects so many users has not been solved after many years (five!). Same for regular Keepass

I'm using Keepass for note taking, and the Notes field is starting to be an eye sore

I agree that other programs also use the system font, but they allow you to dynamically change font size, from Chrome to WSL to Notepad++

@droidmonkey
Copy link
Member

Is it a problem though? If you need bigger font sizes don't you need them everywhere? Why not set your whole operating system to be the right size? Are those other apps not respecting the operating system settings which is why they have specific font size choices?

Lastly, in 5 years not a single person has offered code to offer this option. To me that signals the operating system solution is perfectly acceptable to the vast majority.

@Bibelo
Copy link

Bibelo commented Mar 8, 2022

Thanks for your answer. I image modifying code takes time.

I tried change the scale of the screen from 100% to 125% but the whole Windows everything is way too big. But I guess it won't be a problem soon when I enter old age and everything needs to be huge :-)

@CosmicToast
Copy link

For some reason, Github hasn't been letting me unsubscribe from this issue for 4 years now (I try whenever I get a couple of emails about it, despite having unsubscribed; oddly enough it works for other threads).
Either way, I just want to mention:

Lastly, in 5 years not a single person has offered code to offer this option. To me that signals the operating system solution is perfectly acceptable to the vast majority.

This is a non sequitur: it does signal that whatever option people end up going with is easier to swallow than going out and working on a code solution, but it does not imply that the option people go with is the operating system solution.
This includes me and several other people I know (which is anecdotal, but sufficient as a counterexample to demonstrate the above generalization).

While userbase isn't a strictly important metric for an open source project (as it often fails to predict donations accurately), I did want to mention this regardless, because I do think keepassxc is an important project to have around, and would rather not have the development team (which droidmonkey is notable a part of) driving it blindly.

@JohnLGalt
Copy link

JohnLGalt commented Mar 8, 2022

Instead of enabling display scaling, did you try just text size adjustments?

For Windows 10, see this tutorial: https://www.tenforums.com/tutorials/112263-change-text-size-windows-10-a.html

For Windows 11, System settings --> Display --> click on the bar that has Scale in it (don't change the button value, click on the whole bar itself) --> Text size. (at this point the System settigns app should show System > Display > Custom scaling at the top)

HTH

@maprihoda
Copy link

This is a huge issue on Macs where there is no option for scaling the system fonts.

For those of us who need to have as much real estate on an external monitor as possible (using higher resolution, which however makes the font sizes very small), fortunately, in many applications (even Finder!) we have the option to increase the fonts sizes: I do this in Finder, Pycharm, VSCode, Sublime Text, iTerm2, Email, Chrome/Firefox, etc. Not ideal, but at least something.

Big pity that this is not possible in keepassxc. Would be really great if you could revisit this issue.

@maprihoda
Copy link

I found a solution:

alias kp="QT_SCALE_FACTOR=1.4 /Applications/keepassxc.app/contents/MacOS/KeePassXC /Users/${whoami}/path/to/db.kdbx 2>/dev/null &"

@tredondo
Copy link

Lastly, in 5 years not a single person has offered code to offer this option. To me that signals the operating system solution is perfectly acceptable to the vast majority.

No, it does not signal that at all. I'm stupefied that this illogical argument came from a dev, because it's invalid on so many counts.

First, the vast majority of KeePassXC users are not programmers, so they couldn't offered code even if they wanted to.

Second, even among the programmers, the vast majority don't know the OS internals and codebase to offer a code solution.

Third, it is assumes that a code solution exists.

@keepassxreboot keepassxreboot locked and limited conversation to collaborators Apr 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests