Bug 2222080 - Python 3.11 IDLE has extremely large font in menus, making it unusable
Summary: Python 3.11 IDLE has extremely large font in menus, making it unusable
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: python3.11
Version: 38
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Python Maintainers
QA Contact:
URL: N/A
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-11 18:26 UTC by Jean Abou Samra
Modified: 2023-08-02 17:20 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-02 13:02:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Screencast (1.93 MB, video/webm)
2023-07-11 18:33 UTC, Jean Abou Samra
no flags Details

Description Jean Abou Samra 2023-07-11 18:26:11 UTC
I just tried installing IDLE ("sudo dnf install python3.11-idle") and launching it ("idle3.11"). The application appears... broken in a fascinating way. The application menus are so big that only them are displayed on the screen. Attached is a screencast.

Reproducible: Always

Steps to Reproduce:
1. sudo dnf install python3.11-idle
2. idle3.11
Actual Results:  
Unusable application due to menus taking all screen space.

Expected Results:  
IDLE works.

Comment 1 Jean Abou Samra 2023-07-11 18:33:12 UTC
Created attachment 1975209 [details]
Screencast

Comment 2 Tomas Orsava 2023-08-02 12:40:59 UTC
Hi Jean,
we were not able to reproduce this issue on nene of our machines. Could you please try different settings/windows managers/etc. to try to isolate what might be causing this?
And could you provide the contents of the `~/.idlerc/config-main.cfg` file, if it exists on your system?

Comment 3 Jean Abou Samra 2023-08-02 13:02:26 UTC
<Facepalm>

I understand the issue now. I had put this into my ~/.config/fontconfig/fonts.conf file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">

<fontconfig>
  <match target="pattern">
    <edit name="dpi" mode="assign">
      <double>3000</double>
    </edit>
  </match>
</fontconfig>


I did this while I was debugging an issue in LilyPond that was occurring
on systems that had this sort of customization (which is not the case
in Fedora).

This issue is moot. I'm sorry for having wasted your time on this mistake.

(I don't really know if it should in theory work with other DPI values,
but in any case that would be an upstream issue, not a Fedora issue.)

Comment 4 Miro Hrončok 2023-08-02 17:20:30 UTC
Glad that you have found the cause.


Note You need to log in before you can comment on or make changes to this bug.