x11-calc icon indicating copy to clipboard operation
x11-calc copied to clipboard

Could we have (an option) to resize the emulator window to make it easier to see ?

Open gabaozin opened this issue 1 year ago • 8 comments

Hi,

I tested 12c and thought it was a bit small.

Do you think it would be possible to have it a bit bigger (like 25 % bigger) ?

Thank you very much!

gabaozin avatar Mar 14 '24 19:03 gabaozin

Command line option --zoom n where n = 0-4 has been added in v0.14.0147, you will proabably want to use --zoom 2 which should give you what you want.

Please test and close issue if resolved - Thank you

mike632t avatar Apr 16 '24 22:04 mike632t

@mike632t Please consider increasing the allowed zoom values. Even with a zoom of 4, it's still pretty tiny on my laptop. I would say the zoom should at least be allowed for 8, if not more. This is from the flatpak install on linux if that's helpful.

Image

dslgr avatar Apr 18 '25 02:04 dslgr

This is with no zoom for reference.

Image

dslgr avatar Apr 18 '25 02:04 dslgr

That is some screen resolution! My 24" display is only 1920 x 1200 and those screenshots are 3840 x 2242..

The problem is that although making the buttons bigger is not a problem changing the font size is a bit more complicated, not least because as the program supports several different operating systems and architectures which makes selecting a font that works everywhere a bit more complicated than it could be.

I have a couple of ideas and may get back to this when I have sorted out some other stuff I'm working on. (Note to self - Use an array of different font sizes).

Are you able to compile the code yourself ?

If you are then there are a couple of changes you can try that should make things easier to read.

x11-calc.h

#if defined(HP35) || defined(HP80) || defined(HP45) || defined(HP70) || defined(HP55) || defined(HP10) || defined(HP67)

#if !defined(SCALE_WIDTH)
#define SCALE_WIDTH     2.25
#endif
#if !defined(SCALE_HEIGHT)
#define SCALE_HEIGHT    2
#endif

#else

#if !defined(SCALE_WIDTH)
#define SCALE_WIDTH     2
#endif
#if !defined(SCALE_HEIGHT)
#define SCALE_HEIGHT    2
#endif

#endif

x11-calc-font.c

const char* s_normal_fonts[] =
{
   "-*-fixed-medium-r-semicondensed-*-24-*-*-*-*-*-*-*", /* X11 base font */
   NULL
};
const char* s_small_fonts[] =
{
   "-*-fixed-medium-r-normal-*-20-*-*-*-*-*-*-*", /* X11 base font */
   NULL
};
const char* s_alternate_fonts[] =
{
   "-*-fixed-medium-r-normal-*-20-*-*-*-*-*-*-*", /* X11 base font */
   NULL
};
const char* s_large_fonts[] =
{
   "-*-fixed-medium-r-semicondensed-*-24-*-*-*-*-*-*-*",  /* X11 base font */
   NULL
};

mike632t avatar Apr 20 '25 15:04 mike632t

@mike632t I'll let you know how it goes with me compiling it! Thank you for those suggestions!

dslgr avatar Apr 21 '25 22:04 dslgr

@mike632t It definitely looks a lot better!! image

So sorry it took so long for me to reply!

dslgr avatar May 19 '25 04:05 dslgr

Glad it worked!

mike632t avatar May 25 '25 14:05 mike632t

Think I may have an idea - it requires quite a lot processing so it wouldn't be suitable for older hardware (like VAX or Alpha systems) but it may provide a solution...

How do these screenshots look on your screen?

Image Image Image Image

mike632t avatar Oct 01 '25 22:10 mike632t