[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gambas-bugtracker] Bug #3012: QT6 Fonts and the Font property


http://gambaswiki.org/bugtracker/edit?object=BUG.3012&from=L21haW4-

bruce B reported a new bug.

Summary
-------

QT6 Fonts and the Font property

Type             : Bug
Priority         : Medium
Gambas version   : 3.20
Product          : Development Environment


Description
-----------

(I am not sure that some of the symptoms here are not due to the lousy QT6 implementation in Debian but there is an underlying problem with the IDE saving object fonts.)

One major problem I have with QT6 and the IDE is that if I set the font for a form, or a control in a form, and that font is the same as the IDE Default Font just with a different size then
only the size is saved in the form definition file. Then when the executable is run, either inside the IDE or via gbr3, the font reverts to whatever QT thinks is the "standard" font face.

For example, my Default Font is "Liberation Sans,12".

For a test program for QT6 I set the Form.Font in the properties panel by selecting "Liberation Sans,14" in the font selector popup. All the form is saved as is:
# Gambas Form File 3.0

{ Form Form
  MoveScaled(0,0,64,64)
  Font = Font["14"]
}

For debugging purposes I add
Public Sub Form_Open()

  Debug Me.Font.ToString()

End

When I run the program inside the IDE ... "FMain.Form_Open.6: Sans Serif,14"

This was never  a problem in QT5.


System information
------------------

[System]
Gambas=3.20.2 0a93b2412 (local)
OperatingSystem=Linux
Distribution=Debian GNU/Linux 11 (bullseye)
Kernel=5.10.0-34-amd64
Architecture=x86_64
Cores=16
Memory=5852M
Language=en_AU.UTF-8
Platform=x11
Desktop=XFCE
DesktopResolution=96
DesktopScale=9
WidgetTheme=proxy
Font=Liberation Sans,12
DarkTheme=False
[Programs]
dpkg=Debian 'dpkg' package management program version 1.20.13 (amd64).
gcc=gcc (Debian 10.2.1-6) 10.2.1 20210110
git=git version 2.30.2
msgmerge=msgmerge (GNU gettext-tools) 0.21
rpmbuild=RPM version 4.16.1.2
trans=Translate Shell       0.9.6.12
[Libraries]
Cairo=libcairo.so.2.11600.0
Curl=libcurl.so.4.7.0
DBus=libdbus-1.so.3.19.17
GDK2=libgdk-x11-2.0.so.0.2400.33
GDK3=libgdk-3.so.0.2404.20
GStreamer=libgstreamer-1.0.so.0.1804.0
GTK+2=libgtk-x11-2.0.so.0.2400.33
GTK+3=libgtk-3.so.0.2404.20
OpenGL=libGL.so.1.7.0
Poppler=libpoppler.so.102.0.0
QT5=libQt5Core.so.5.15.2
QT6=libQt6Core.so.6.4.2
RSvg=librsvg-2.so.2.47.0
SDL=libSDL2-2.0.so.0.2600.4
SQLite3=libsqlite3.so.0.8.6
[Environment]
DBUS_SESSION_BUS_ADDRESS=unix:path=/tmp/dbus-8bSMO83q9b,guid=15f6def9088fa00c87f2d73d67e62f31
DESKTOP_SESSION=xfce
DISPLAY=:0.0
EDITOR=geany
GB_GUI=gb.qt6
GDMSESSION=xfce
GDM_LANG=en_AU.UTF-8
GTK3_NOCSD_IGNORE=1
GTK_CSD=1
GTK_MODULES=canberra-gtk-module
HOME=<home>
LANG=en_AU.UTF-8
LANGUAGE=en_AU.UTF-8
LOGNAME=<user>
PAPERSIZE=a4
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
PWD=<home>
QT_ACCESSIBILITY=1
QT_LOGGING_RULES=*.debug=false
QT_PLATFORMTHEME=gtk2
QT_PLATFORM_PLUGIN=gtk2
QT_QPA_PLATFORMTHEME=gtk2
QT_SCALE_FACTOR=1
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/3724,unix/<hostname>:/tmp/.ICE-unix/3724,inet6/<hostname>:35565,inet/<hostname>:44215
SHELL=/bin/bash
SSH_AGENT_PID=3805
SSH_AUTH_SOCK=/tmp/ssh-3ddyGWXWgVVo/agent.3724
TZ=:/etc/localtime
USER=<user>
XAUTHORITY=<home>/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg
XDG_CURRENT_DESKTOP=XFCE
XDG_DATA_DIRS=/usr/share/xfce4:<home>/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/usr/share
XDG_GREETER_DATA_DIR=/var/lib/lightdm/data/<user>
XDG_MENU_PREFIX=xfce-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=xfce
XDG_SESSION_ID=1
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
XDG_VTNR=7


----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----