Navigation Cube: text illegible

A forum for research and development of the user interface of FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
jdawgaz
Posts: 7
Joined: Sun Feb 08, 2015 4:43 pm

Re: Navigation Cube: text illegible

Post by jdawgaz »

wow. sure did miss that one.

thanks. I am ecstatic!
User avatar
onekk
Veteran
Posts: 6146
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Navigation Cube: text illegible

Post by onekk »

Same problem here and Cube Menu is crashing with this error:

Code: Select all

16:25:48  Traceback (most recent call last):
16:25:48    File "/home/common/FreeCAD/config/Mod/CubeMenu/CubeMenuGui.py", line 88, in onPreferences
16:25:48      dialog = cpp.dialog()
16:25:48    File "/home/common/FreeCAD/config/Mod/CubeMenu/CubeMenuPreferences.py", line 134, in dialog
16:25:48      stack.insertWidget(0, general(dia, stack, btnClose, btnSettings))
16:25:48    File "/home/common/FreeCAD/config/Mod/CubeMenu/CubeMenuPreferences.py", line 675, in general
16:25:48      populateCBoxWb()
16:25:48    File "/home/common/FreeCAD/config/Mod/CubeMenu/CubeMenuPreferences.py", line 312, in populateCBoxWb
16:25:48      icon = cpc.wbIcon(wb[i].Icon)
16:25:48    File "/home/common/FreeCAD/config/Mod/CubeMenu/CubeMenuCommon.py", line 67, in wbIcon
16:25:48      icon.append((a
16:25:48  IndexError: list index out of range
How to change label font size?

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
onekk
Veteran
Posts: 6146
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Navigation Cube: text illegible

Post by onekk »

Anyone know what are correct parameters to change Navicube Font Size, some discussion about changing parameters, but that didn't seem to work.

Any hints?
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
symbolicM
Posts: 18
Joined: Thu Oct 04, 2018 6:44 pm

Re: Navigation Cube: text illegible

Post by symbolicM »

Plus one to difficulties with navigation cube label font display size.
I expected to find a value I could tweak via Tools=>Edit Paramiters=>NaviCube
under https://wiki.freecad.org/Navigation_Cube but judging from previous posts I guess not.

- useful reference: Make FreeCAD's Navi Cube Stand Out with Custom Colors - Quick Tutorial FreeCAD 0.20.2 https://youtu.be/bUg40MeLjps

I tried adding a "TextSize" integer of 12 which seemed to me to be a good guess at the appropriate variable name but to no avail.

SlackwareOS15 x86_64
FreeCAD 0.20.1 29410 (Git) upgraded appimage

Please feel free to advise while I work back through this thread to see what I've missed.
Screenshot_20230424_093310.png
Screenshot_20230424_093310.png (84.41 KiB) Viewed 771 times
mario52
Veteran
Posts: 4673
Joined: Wed May 16, 2012 2:13 pm

Re: Navigation Cube: text illegible

Post by mario52 »

Hi
symbolicM wrote: Mon Apr 24, 2023 8:35 am SlackwareOS15 x86_64
FreeCAD 0.20.1 29410 (Git) upgraded appimage
try upgrade your FreeCAD see NaviCube and font size

mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
User avatar
symbolicM
Posts: 18
Joined: Thu Oct 04, 2018 6:44 pm

Re: Navigation Cube: text illegible

Post by symbolicM »

Okay, installed CubeMenu which added the following item to the Parameter Editor.

FontString Text type key
Containing the string: "Sans Serif,72,-1,5,50,0,0,0,0,0"

As Mario suggested text font size was the key issue in my case so I went large with the 72 point, which is the second value in the comma delimitered string if you wish to forgo installing the CubeMenu AddOn.

Thank you mario52 and all those that went before me for your valuable insights.
___
ordinary by design
Post Reply