Page 1 of 1

no text in menus with VirtualBox-5.1-5.1.8_111374_el7-1.x86_64

Posted: 29. Oct 2016, 21:52
by ezekieldas
Using VirtualBox-5.1-5.1.8_111374_el7-1.x86_64, kernel 3.10.0-327.36.3.el7.x86_64, centos CentOS Linux release 7.2.1511 (Core)

CentOS is a minimal install. The only X11 stuff was installed as dependecies for VirtualBox (eg libX11-1.6.3-2.el7.x86_64,
libX11-common-1.6.3-2.el7.noarch).

Important to note I'm bringing up the gui remotely via XQuartz 2.7.8 on OS X 10.10.3

At first I saw this error:

Code: Select all

xkbcommon: ERROR: failed to add default include path /usr/share/X11/xkb
Qt WARNING: Qt: Failed to create XKB context!
Qt WARNING: Use QT_XKB_CONFIG_ROOT environmental variable to provide an additional search path, add ':' as separator to provide several search paths and/or make sure that XKB configuration data directory contains recent enough contents, to update please see http://cgit.freedesktop.org/xkeyboard-config/ .
So then I installed xkeyboard-config and tried again. The Qt WARNING prints quite a bit when selecting items in the menu:

Code: Select all

[root@darby ~]# export QT_XKB_CONFIG_ROOT=/usr/share/X11/xkb
[root@darby ~]# VirtualBox
Qt WARNING: QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
Qt WARNING: QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
Qt WARNING: QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
Qt WARNING: QFont::setPointSizeF: Point size <= 0 (-0.750000), must be greater than 0
[ ... ]
Same issue. Screenshots:

vb_2016-10-29_12-36-21.png
vb_2016-10-29_12-36-21.png (23.15 KiB) Viewed 3808 times
vb_2016-10-29_12-35-57.png
vb_2016-10-29_12-35-57.png (56.4 KiB) Viewed 3808 times

Re: no text in menus with VirtualBox-5.1-5.1.8_111374_el7-1.x86_64

Posted: 29. Oct 2016, 22:10
by ezekieldas
Solved with 'yum groupinstall Fonts' --but this includes a ton of fonts (43 packages). It'd be nice to just include the few necessary as dependencies for the main package.

Re: no text in menus with VirtualBox-5.1-5.1.8_111374_el7-1.x86_64

Posted: 30. Oct 2016, 10:36
by mpack
I don't see how dependencies would work. I'd be surprised if VirtualBox requires particular fonts. It will want a loose match for a few style features and sizes, that's all. Not VirtualBox's problem that the font pack you choose to install has 43 styles!

Re: no text in menus with VirtualBox-5.1-5.1.8_111374_el7-1.x86_64

Posted: 30. Oct 2016, 13:26
by Perryg
I know that when building VBox from source ( at least the rpm types ) the "bera" font is required. Maybe that is the font that is really needed to run the main manager?

Re: no text in menus with VirtualBox-5.1-5.1.8_111374_el7-1.x86_64

Posted: 30. Oct 2016, 13:43
by mpack
I don't know how the font manager will work on Qt. When programming on Windows I can certainly ask for { "Times New Roman", Serif, 8pt, Bold } etc, but there's no guarantee I'll get it. If the font manager has an exact match then sure, I'll get that, otherwise I get whatever it has as a closest match. Point size and so on can only be properly instantiated when the display resolution is known, so I'm not sure that a dependencies tag would be smart enough for this.

Re: no text in menus with VirtualBox-5.1-5.1.8_111374_el7-1.x86_64

Posted: 1. Nov 2016, 03:47
by ezekieldas
I narrowed it down to this set:

gnu-free-mono-fonts-20120503-8.el7.noarch
fontconfig-2.10.95-7.el7.x86_64
gnu-free-fonts-common-20120503-8.el7.noarch
gnu-free-sans-fonts-20120503-8.el7.noarch
google-crosextra-caladea-fonts-1.002-0.4.20130214.el7.noarch
fontpackages-filesystem-1.44-8.el7.noarch
gnu-free-serif-fonts-20120503-8.el7.noarch
open-sans-fonts-1.10-1.el7.noarch