Bug#1111275: sweethome3d: Sweethome3D UI fonts are WAAAYYY too small.

Thomas tnemeth at free.fr
Sat Aug 16 12:34:19 BST 2025


Package: sweethome3d
Version: 7.5+dfsg-1
Severity: normal
Tags: patch

    Hi !

    When using java applications such as sweethome3d on a 4K screen, the
    UI fonts are so tiny that they become unreadable. On the sweethome3d
    website FAQ (https://www.sweethome3d.com/faq.jsp) there's a section
    about "Texts in the furniture catalog are not displayed correctly or
    icons in the toolbar appear very small on my computer. How can I fix
    that?" which references a "SweetHome3D.l4j.ini"
    (https://www.sweethome3d.com/SweetHome3D-HiDPIx2.l4j.ini).

    So I updated the loader script for sweethome3d to read the
    ~/.eteks/sweethome3d/*.ini files and use their contents to
    start sweethome3d with my own fonts configuration.

    Here is the diff:

------8<------8<------8<------8<------8<------8<------8<------8<
--- sweethome3d.sh.orig 2025-08-16 10:22:45.739731243 +0200
+++ sweethome3d.sh      2025-08-16 13:22:15.693901992 +0200
@@ -1,10 +1,18 @@
 #!/bin/sh
 #
 #
+
+USER_DIR=$HOME/.eteks/sweethome3d
+USER_CFG=""
+for FILE in $(ls $USER_DIR/*.ini 2>/dev/null) ; do
+       USER_CFG="$USER_CFG $(cat $FILE)"
+done
+
 BASEPATH=/usr/share/sweethome3d
 JAVA_ARGS="-Djava.library.path=/usr/lib/jni \
  -Dcom.eteks.sweethome3d.applicationFolders=$HOME/.eteks/sweethome3d:/usr/share/sweethome3d \
  -Dcom.eteks.sweethome3d.j3d.checkOffScreenSupport=false \
+ $USER_CFG
  -Dsun.java2d.opengl=true --add-exports java.desktop/sun.awt=ALL-UNNAMED"
 
 . /usr/lib/java-wrappers/java-wrappers.sh
------8<------8<------8<------8<------8<------8<------8<------8<


    My own configuration file :

------8<------8<------8<------8<------8<------8<------8<------8<
-Dcom.eteks.sweethome3d.resolutionScale=2
-Dswing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel
-Dswing.plaf.metal.controlFont=Dialog-9
-Dswing.plaf.metal.userFont=SansSerif-9
-Dswing.plaf.metal.systemFont=SansSerif-9
------8<------8<------8<------8<------8<------8<------8<------8<


    Note that I can't make it use another Look&Feel and I don't
    know why (maybe I don't know how to).



-- System Information:
Debian Release: forky/sid
  APT prefers testing
  APT policy: (500, 'testing'), (100, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.38+deb13-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_USER, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages sweethome3d depends on:
ii  default-jre [java8-runtime]     2:1.21-76
ii  icedtea-netx                    1.8.8-3
ii  java-wrappers                   0.5
ii  libbatik-java                   1.18+dfsg-2
ii  libfreehep-graphics2d-java      2.4+dfsg-3
ii  libfreehep-graphicsbase-java    2.4+dfsg-3
ii  libfreehep-graphicsio-java      2.4+dfsg-3
ii  libfreehep-graphicsio-svg-java  2.4+dfsg-3
ii  libitext-java                   2.1.7-16
ii  libjava3d-java                  1.5.2+dfsg-18
ii  libsunflow-java                 0.07.2.svn396+dfsg-18
ii  openjdk-21-jre [java8-runtime]  21.0.8+9-1

Versions of packages sweethome3d recommends:
ii  sweethome3d-furniture  1.8-1

sweethome3d suggests no packages.

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/share/sweethome3d/sweethome3d.sh (from sweethome3d package)



More information about the pkg-java-maintainers mailing list