zdia / gorilla

Password Gorilla manages passwords
420 stars 60 forks source link

Change password font #214

Open hughh opened 4 years ago

hughh commented 4 years ago

I am currently running password-gorilla on a Linux Mint 19.3 system. Some characters are difficult to distinguish with the font currently being used, e.g. "rn" vs "m" and "l" vs "I". I would like to have a font that made it easier to tell such combinations apart, such as any of the monospaced fonts. Ideally, I'd like to be able to choose from any installed on my system, but any monospaced font would really do.

rich123 commented 4 years ago

Are you running a source package (gorilla.tcl) or a kit package (gorilla*.kit)?

If you are running the source, then there is a workaround that you can apply yourself that will switch the password views to a mono-space font.

Open up your gorilla.tcl file in a text editor, and search first for this comment line:

# password should show "*" by default

And change the next line in the file from this:

$widget(password) configure -show "*"

to this:

$widget(password) configure -show "*" -font TkFixedFont

Then next search for this comment line:

# notes box is now a Tk text widget (so that select+copy operates properly)

And insert this next line just before the comment:

$infoframe.passE configure -font TkFixedFont

These two lines will change the password field in both the edit and view windows to use a mono-spaced font (currently this would be the font that Tk chooses from your system as its default font). This will at least give you mono-space display of the passwords when you view them.