Bug 2222080

Summary: Python 3.11 IDLE has extremely large font in menus, making it unusable
Product: [Fedora] Fedora Reporter: Jean Abou Samra <jean>
Component: python3.11Assignee: Python Maintainers <python-maint>
Status: CLOSED NOTABUG QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: cstratak, mhroncok, python-maint, python-packagers-sig, thrnciar, torsava, vstinner
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
URL: N/A
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-02 13:02:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Screencast none

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.