How to zoom in the afni controller on a screen with very high resolution?

Hi afni experts,
Afni is installed on my laptop which has a screen with very high resolution. The words and buttons on the afni controller are too small to read and operate on. This problem can’t be solved by using the option " -XXXfontA fontname " . The fontname is the name of the largest font given by this command:
“xlsfonts | grep -e ‘-[cm]-’ | grep -e ‘-iso8859-1$’ | grep -e ‘-medium-’ | grep -e ‘-r-normal-’ | grep -v -e ‘-0-0-’ | sort -t ‘-’ -k 8 -n | uniq”.
Do you know any other method to zoom in the afni controller and the words and buttons on it.
Thank you in advance!

What was the largest fontname you tried? I am running this on 5K Retina screen iMac, and this results in something pretty big.

afni -XXXfontA -adobe-courier-medium-r-normal–34-240-100-100-m-200-iso8859-1

The “34” is the point size of the font in the command above. You can install additional fonts on your system if you don’t have ones large enough. On a linux system, you can install font packages like xorg-x11-fonts-misc.

Other ways to change the size are to increase the size in the .Xdefaults file, change the X11 scaling with “xrandr -scale” on Linux systems to scale the image, or lower the display resolution with the preferences/settings panel of the operating system.

To change the default font in the .Xdefaults file in your home directory, create a ~/.Xdefaults file and insert a line like this one:

!! font to use in most widgets
AFNI*fontList: -b&h-lucidatypewriter-medium-r-normal-sans-34-240-100-100-m-200-iso8859-1

!! Alternatives:
!! -adobe-courier-bold-r-normal–34-240-100-100-m-200-iso8859-1
!! lucidasanstypewriter-bold-24=charset1
!! 9x15bold=charset1

This font is applied to most of the menu but not all of it. The XXXfontA,B,C options are more convenient ways to change all the fonts.

Hi Daniel,
The largest font name is “-sony-fixed-medium-r-normal–24-230-75-75-c-120-iso8859-1” on my Ubuntu. The font package xorg-x11-fonts-misc can’t be installed on Ubuntu. Do you know other font packages with large font size?
The XXXfontA, B, C options are pretty good but I have to add these options and some very long font names following the command “afni" in the terminal each time I open AFNI. The font size is still very small if I just type the “afni” in the terminal. Do you know how to make these options become default settings so that I need not type very long font name every time I open AFNI?
Thank you again!
Yu

Either create an “alias” in your Unix shell’s startup to make this easier, and you would just type something like “bigafni” for your alias, or modify the .Xdefaults file. You should be able to install other fonts with apt-get. While it is not recommended, proportionally spaced fonts will also work, just not as pretty for some menus.

I finally had a chance to try on an Ubuntu system. This font should be available.

--lucidatypewriter-medium----34-------*

Also you should be able to install some additional fonts for high resolution screen with

sudo apt-get install xfonts-100dpi

Ubuntu must have a better font viewer, but you can peruse the fonts with the old xfontsel program too.

Thank you, Daniel! I am very appreciated for your new answer!

Hi Daniel,

Does suma have similar controlling option to change the font and button size? Couldn’t find it.

Meng