Hello there!
Thanks for maintaining this project.
The default font and size is too small on macOS. I tried switching to use the same values as the default Java editor ones (Menlo, size 12), however, the columns don't scale properly and part of the data is hidden. You can see some of the hexa values being chopped off in the attached screenshot.
Could this please be improved?
Thanks in advance!
Salue Pierre,
I don't see the meantioned attachment. Could you please provide it?
And do you mean the "Courier 18" with the default font size?
Best regards, Peter.
Sorry, I must have missed the attachment! :)
Menlo size 12 is the default font for most of Eclipse on recent versions of macOS (Basic -> Text Font, inherited by a lot of parts of the UI). Does the Hex Editor use Courier by default? I'm unable to recognise its font.
Last edit: Pierre-Yves B. 2020-04-12
On my Windows myachine, it looks OK. The coded default is Courier New 10.
private static final FontData DEFAULT_FONT_DATA = new FontData("Courier New", 10, SWT.NORMAL);
Menlo is not present on my Windows machine. I also have a Mac Mini somewhere and will try to test it there.
And by the way: Did you know you can change the font persistently via the Edit/Preferences Menu (standalone version)?
Hello Peter,
I'm no longer able to reproduce any font size issues with the latest version. I've tried with the Menlo and Fira Code fonts and varying sizes. Can probbaly be closed. :)
This new SWTUtility methods use the more accurate methods, if the active SWT is newer (which is the case if you run the Eclipse plugin in 4.17). The new methods work with double instead of int and probebly handle fractional cases better. So I close it for now.