[Gambas-user] Printer Font Size Problem
Ed & Clare Kelm
twopilots at interisland.net
Thu Oct 17 20:35:04 CEST 2019
The printer font size has a new problem which has just appeared within
the last month.
Setting the size results in a size slightly smaller.
Setting bold to either true or false reduces the size by a small amount.
This test code in a the printer draw event results in the console output
shown below it.
Public Sub Printer1_Draw()
Print Paint.Font.Size
Paint.Font.Size = Paint.Font.Size
Print Paint.Font.Size
Paint.Font.Size = 14
Print Paint.Font.Size
Paint.Font.Bold = True
Print Paint.Font.Size
Paint.Font.Bold = False
Print Paint.Font.Size
End
Console display:
12
11.667058985647
13.6115688165881
13.2339146891938
12.866738607487
[System]
Gambas=3.14
OperatingSystem=Linux
Kernel=4.4.0-148-generic
Architecture=x86_64
Distribution=Ubuntu 14.04.6 LTS
Desktop=XFCE
Theme=Windows
Language=en_US.UTF-8
Memory=7893M
[Libraries]
Cairo=libcairo.so.2.11301.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.204.0
GTK+2=libgtk-x11-2.0.so.0.2400.23
GTK+3=libgtk-3.so.0.1000.8
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.44.0.0
QT4=libQtCore.so.4.8.6
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6
[Environment]
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-dWQTeZkGf1
DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path
DESKTOP_SESSION=xubuntu
DISPLAY=:0.0
GB_GUI=gb.qt4
GDMSESSION=xubuntu
GDM_LANG=en_US
GLADE_CATALOG_PATH=:
GLADE_MODULE_PATH=:
GLADE_PIXMAP_PATH=:
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-1456W7
GNOME_KEYRING_PID=
GPG_AGENT_INFO=/run/user/1000/keyring-1456W7/gpg:0:1
HOME=<home>
IM_CONFIG_PHASE=1
INSTANCE=
JOB=dbus
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LOGNAME=<user>
MANDATORY_PATH=/usr/share/gconf/xubuntu.mandatory.path
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PWD=<home>
SELINUX_INIT=YES
SESSION=xubuntu
SESSIONTYPE=
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1471,unix/<hostname>:/tmp/.ICE-unix/1471
SHELL=/bin/bash
SHLVL=0
SSH_AUTH_SOCK=/run/user/1000/keyring-1456W7/ssh
TEXTDOMAIN=im-config
TEXTDOMAINDIR=/usr/share/locale/
TZ=:/etc/localtime
UPSTART_EVENTS=started xsession
UPSTART_INSTANCE=
UPSTART_JOB=startxfce4
UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1200
USER=<user>
XAUTHORITY=<home>/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-xubuntu:/usr/share/upstart/xdg:/etc/xdg:/etc/xdg
XDG_CURRENT_DESKTOP=XFCE
XDG_DATA_DIRS=/usr/share/xubuntu:/usr/share/xfce4:/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_ID=c1
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_VTNR=7
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20191017/f1dcd05f/attachment.html>
More information about the User
mailing list