Ticket #4041 - Lost navigation cube labels

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
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!
leong
Posts: 40
Joined: Mon Apr 11, 2016 8:46 pm

Re: Ticket #4041 - Lost navigation cube labels

Post by leong »

Wouldn't the system substitute the font with another if it can't find Helvetica?
I would think so, but it never did for me and this workaround fixed the issue for me in that the navigation cube has readable labels and never did prior to my installing the font. Even when I first reported this, Ubuntu users did not have the problem and there has been no suggestion of another solution that worked for me.
Maybe it is related to my distro or to the qt version on my system.
For me for now I can see nav cube labels and that works for me. I leave it to wiser heads to find the underlying cause and fix it at some point.
Thank you.
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: SOLVED--Re: Ticket #4041 - Lost navigation cube labels

Post by openBrain »

jmaustpc wrote: Fri Aug 09, 2019 12:49 pm 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?
Definitely it substitutes. ;)
https://doc.qt.io/qt-5/qfont.html#details (2nd paragraph)
The fact is that depending on the fonts that are installed on your system, in case Helvetica isn't available, you'll get one or another among the available ones. ;)
leong
Posts: 40
Joined: Mon Apr 11, 2016 8:46 pm

Re: Ticket #4041 - Lost navigation cube labels

Post by leong »

It did substitute except in the Nav Cube. Everything else worked.
I can't explain why then, but adding the font fixed the issue with the Nav cube for me.
Not having Helvetica was never a problem in the past.
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Ticket #4041 - Lost navigation cube labels

Post by openBrain »

leong wrote: Fri Aug 09, 2019 1:38 pm It did substitute except in the Nav Cube. Everything else worked.
I can't explain why then, but adding the font fixed the issue with the Nav cube for me.
Not having Helvetica was never a problem in the past.
I guess in your case, font substitution algorithm didn't found any "similar font" and just failed.
leong
Posts: 40
Joined: Mon Apr 11, 2016 8:46 pm

Re: Ticket #4041 - Lost navigation cube labels

Post by leong »

I guess in your case, font substitution algorithm didn't found any "similar font" and just failed.
So it would seem, though the rest of the app had no problem substituting another font for the other parts of the app.
It works now and that is the end of it for me.
User avatar
onekk
Veteran
Posts: 6222
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Ticket #4041 - Lost navigation cube labels

Post by onekk »

A rough substitution according to this page:

https://wiki.archlinux.org/title/Metric ... ible_fonts


Would be to hardcode, this Free (GPL3) font and include the font in FreeCAD distribution. https://en.wikipedia.org/wiki/GNU_FreeFont

Alternatives could be "Liberation Font"

Usually one of them is installed in almost all Linux distribution, Helvetica could be tricky as some installation has a "bitmap font" that render it or don't have a proper fontconfig setting.

Skilled user could ever change some fontconfig rules to adapt to their taste.

Regards

Carlo D.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Ticket #4041 - Lost navigation cube labels

Post by Kunda1 »

Issue issue #5959 is still open.
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
Post Reply