Not that time I think. No problem here with an Intel GPU.
Ticket #4041 - Lost navigation cube labels
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
Re: Ticket #4041 - Lost navigation cube labels
Last edited by openBrain on Mon Jul 01, 2019 11:20 am, edited 1 time in total.
Re: Ticket #4041 - Lost navigation cube labels
Same issue in german forum, like chrisb mentioned,
walks along with this error message in report view:
Same in your case?
walks along with this error message in report view:
Code: Select all
XmbTextListToTextProperty result code -2
Same in your case?
Re: Ticket #4041 - Lost navigation cube labels
On my system labels are visible but letters are squashed together.
Code: Select all
OS: Windows 8.1
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.17144 (Git)
Build type: Release
Branch: master
Hash: ece1b7ecbaa36d22403d6850d8498882d820db3c
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Dutch/Netherlands (nl_NL)
- Attachments
-
- nav_019.png (2.74 KiB) Viewed 1680 times
Re: Ticket #4041 - Lost navigation cube labels
Anyone find a solution to this?
Re: Ticket #4041 - Lost navigation cube labels
Does that change something if you change the app font?
Code: Select all
from PySide import QtGui
Gui.getMainWindow().setFont(QtGui.QFont("Mono", 10, QtGui.QFont.Normal, False))
Re: Ticket #4041 - Lost navigation cube labels
Thank you. Sadly, it did not help the labels in the Navigation Cube.
Any idea where the Navigation Cube takes its font from?
The Xmb error (XmbTextListToTextProperty result code -2) appears throughout the log file, but I have no idea of its significance.
Any idea where the Navigation Cube takes its font from?
The Xmb error (XmbTextListToTextProperty result code -2) appears throughout the log file, but I have no idea of its significance.
SOLVED--Re: Ticket #4041 - Lost navigation cube labels
So i went looking around for a solution. I looked in the source code and saw the navigation cube used "Helvetica" font. I searched my system and I did not have Helvetica. It is proprietary but I found a free sample and downloaded it and installed the font on my system and now the labels can be seen.
This problem could be resolved by using a different font in the navigation cube.Re: Ticket #4041 - Lost navigation cube labels
'Hold your horses there fella' not sure this is Solved just yet. You found a workaround but not a solution. A solution would entail having a conditional check to see if said font in the system before setting it as the font for FC. Oh and another thing, are u saying that Helvetica (a proprietary font) is a hardcoded default in to FC??
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Re: Ticket #4041 - Lost navigation cube labels
Thank you for the correction. You are correct, it is "solved" for me. My workaround was based on finding the following in NaviCube.cpp for 0.19
and on the fact that changing the font in preferences had not effect on the navigation cube.
As I do not do coding (and my little knowledge is likely a dangerous thing), I leave it to you to say whether or not that constitutes harcoding the font into FC.
Code: Select all
if (text) {
paint.setPen(Qt::white);
QFont sansFont(str("Helvetica"), 0.18 * texSize);
sansFont.setStretch(QFont::ExtraCondensed);
paint.setFont(sansFont);
paint.drawText(QRect(0, 0, texSize, texSize), Qt::AlignCenter,qApp->translate("Gui::NaviCube",text));
}
As I do not do coding (and my little knowledge is likely a dangerous thing), I leave it to you to say whether or not that constitutes harcoding the font into FC.
Re: SOLVED--Re: Ticket #4041 - Lost navigation cube labels
I doubt that is the problem since the text shows perfectly here for me and as far as I can tell I don't have Helvetica on this system, at least not that I can find. Wouldn't the system substitute the font with another if it can't find Helvetica?leong wrote: ↑Fri Aug 09, 2019 11:31 am So i went looking around for a solution. I looked in the source code and saw the navigation cube used "Helvetica" font. I searched my system and I did not have Helvetica. It is proprietary but I found a free sample and downloaded it and installed the font on my system and now the labels can be seen.
screen_20190809-072523.png
This problem could be resolved by using a different font in the navigation cube.
OS: Ubuntu 18.04.3 LTS (ubuntu:GNOME/ubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Python version: 3.6.8
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Australia (en_AU)