Ukelele Zoom Doesn't Zoom Glyphs/Letters

14 views
Skip to first unread message

Mark David

unread,
Mar 21, 2025, 1:56:29 PMMar 21
to ukelel...@googlegroups.com
Hi,
I just tried zooming my keyboard window in Ukelele to 300% so I could better see and distinguish glyphs on the keycaps. However, it didn't magnify the glyphs.  Can it be changed to make the glyphs be proportional to the zoom level?  It would really help in a lot of cases.
Thanks,
Mark

Gé van Gasteren

unread,
Mar 21, 2025, 4:20:19 PMMar 21
to ukelel...@googlegroups.com
Hi Mark,

If you have to zoom in and out a lot, I understand your suggestion.

However, in my way of working, I usually have the keyboard at the same size while working (a size to fit my screen), i.e. I don’t need to change the font size, once it’s adjusted.
Also, I kind of like that I can keep the font size relatively small compared to the keys, so I appreciate that I can set it separately from the keyboard size.

On the other hand, one could think of a situation where font and keyboard would zoom together, and a preference setting would specify a percentage or proportion of font and key size.


--
You received this message because you are subscribed to the Google Groups "Ukelele Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ukelele-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ukelele-users/CANNzAnhRc_wPR84Ad4a3PhUwyz%2BoxLYgtsBp6Hj%3Dfo%3DOqjce%2Bw%40mail.gmail.com.

Mark David

unread,
Mar 22, 2025, 3:08:36 PMMar 22
to ukelel...@googlegroups.com
Hi, 

Hope it's ok if I add to my suggestion a bit. I think text should definitely be scaled according to the zoom percentage. I think most MacOS users would naturally expect this, since it's the behavior of Excel and Numbers, to take 2 apps that are gridlike like Ukelele.  Consider also other apps such as the major browsers, MS Word and TextEdit app -- all scale text according to zoom level. 

Since it's been this way, Ukelele and there's a useful use case, I think there should be a switch to enable either behavior. It could just be a checkbox in the Settings dialog. I would argue it should be the default to scale text according to zoom level, since it's such expected behavior, but I could see the case for having the opposite default simply for compatibility.

Gé van Gasteren

unread,
Mar 22, 2025, 5:27:14 PMMar 22
to ukelel...@googlegroups.com
Hi Mark,

I think this is a relaxed group, and any suggestions are welcome.
That said, John is the only Ukelele developer and he’s doing it in his spare time.
But I’m frequently amazed at his dedication and flexibility, so one never knows…

John Brownie

unread,
Apr 1, 2025, 3:06:00 AMApr 1
to ukelel...@googlegroups.com
I’m back from my travels and have some time to think about this one.

When I was working on the rewrite required when I changed the format of the keyboard definition, I was struggling a bit with what zoom should do. There are two possibilities: scale only the keyboard image and get the user to choose an appropriate point size, or scale the displayed font size as well. I chose the first, but obviously there is an argument for the second!

The reasoning I went with is that a bigger key size allows display of longer text at the current point size, so avoids clipping the content, which is particularly noticeable when a key shows the XML coding of a character. Hence scaling up the point size does not make the whole output visible, which is arguably the reason for zooming in. Also, if the user explicitly asks for a point size in the fonts panel, should Ukelele show that point size, or scale it by the current scale factor?

But there are valid reasons to have both, so I will look into making both available, with a choice in the Settings dialog. It will take some time to get there, with a number of issues to work out along the way.

John

Gé van Gasteren

unread,
Apr 1, 2025, 5:15:57 AMApr 1
to ukelel...@googlegroups.com
Hi John, Mark,

Here’s some brainstorming about how that could work for the user – concocted in complete ignorance of how hard or easy it would be to implement all that.

Basically, zooming the keyboard window would zoom the font accordingly, as Mark prefers. 
To manage that, the following changes should be considered.

In the Settings, there could be a default relative font size, instead of a certain point size:
Ukelele Relative font size (settings).jpg
However, I’m not sure how that setting would/should interact with Apple’s "choose font" dialog that opens when you click on "Change…"
Can the point size selected there be ignored? Or automatically converted into a percentage that is then shown in the drop-down menu’s field?

In the keyboard window, there could be a live slider to increase or decrease the current relative point size.
What I mean with "live" is that moving it changes the displayed font size real-time, so one could (for example) move the slider down slowly until the complete XML coding is visible in the keys.
To the right of the F12 function key, there may just be space for a button that pops up a vertical slider when clicked, but maybe a horizontal slider is better?:
image.png

An alternative would be a drop-down menu, like this:
Ukelele interface with relative font size menu.jpg

While I was at it, I also added a "Fit window" option to the Zoom menu.
In my way of working, that is usually more practical than the "Fit screen" option.
More accurate names would obviously be "Fit window width" and "Fit screen width", but I think the shorter names are better and clear enough.

At some point during my fiddling around, I realized that I had no idea what the "Cancel" button is for… Please enlighten me :-)

John Brownie

unread,
Apr 1, 2025, 10:40:43 AMApr 1
to ukelel...@googlegroups.com
Thanks for the suggestions! I’ll certainly think about the options there.

The Cancel button is for when you do a multi-part action and want to stop it in the middle. Things like swapping keys, etc.

John

--
You received this message because you are subscribed to the Google Groups "Ukelele Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ukelele-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages