iraf-community / pyraf

Command language for IRAF based on Python.
https://iraf-community.github.io/pyraf.html
Other
59 stars 18 forks source link

epar font size too small for 4k monitor #67

Open pllim opened 6 years ago

pllim commented 6 years ago

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.

olebole commented 2 years ago

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?

Firestar-Reimu commented 2 years ago

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

olebole commented 2 years ago

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

Firestar-Reimu commented 2 years ago

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

图片

This is what epar looks like

olebole commented 2 years ago

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.

Firestar-Reimu commented 2 years ago
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 commented 2 years ago

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