pyraf icon indicating copy to clipboard operation
pyraf copied to clipboard

epar font size too small for 4k monitor

Open pllim opened this issue 6 years ago • 7 comments

User has HiDPI display, with 4K resolution, and has problems with PyRAF epar GUIs, with labels being too small. According to @cdsontag , there does not appear to be a way for user to configure font size.

pllim avatar Aug 24 '18 14:08 pllim

I do not have this problem -- it seems that the Tk default were improved in the last years. It worked well at least under Linux. For Mac, I don't have a HighDPI screen to test; on 1920x1200 (a VirtualBox) it looks OK. Coould someone re-check?

olebole avatar Oct 04 '21 06:10 olebole

Same issue on my 2560x1600 screen.

https://forum.manjaro.org/t/how-to-make-the-x-window-show-better/91646/

pyraf 2.1.15 iraf 2.16.UR.1 python 2.7.18 tk 8.6.11

Firestar-Reimu avatar Nov 23 '21 01:11 Firestar-Reimu

Python 2 is no longer supported. Can you try out the release candidate 2.2.0RC1?

olebole avatar Nov 23 '21 06:11 olebole

Nope, I install Pyraf 2.2.0rc1 on pip and Iraf Snapshot 2.16.1+2021.06.14

图片

This is what epar looks like

Firestar-Reimu avatar Nov 23 '21 12:11 Firestar-Reimu

You could install the xrdb command and run the following:

echo Xft.dpi: 300 | xrdb -merge

Adjust the 300 to get the size you want. To make it permanent, put the line

 Xft.dpi: 300

into your ~/.XResources.

olebole avatar Nov 23 '21 13:11 olebole

echo Xft.dpi 192 | xrdb -merge
xrdb: colon missing on line 1, ignoring line

If I put the line

 Xft.dpi: 300

into my ~/.XResources, and run xrdb ~/.Xresources

All the x-window become larger (for example, fcitx, as the right one is 192 dpi)

BUT epar is not influenced.

Firestar-Reimu avatar Nov 23 '21 13:11 Firestar-Reimu

Do I need to install fonts like xgterm*font: lucidasanstypewriter-18?

Firestar-Reimu avatar Nov 29 '21 11:11 Firestar-Reimu