request for input: default for NaviCube font

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Hologram
Posts: 201
Joined: Thu Nov 03, 2022 3:05 pm

Re: request for input: default for NaviCube font

Post by Hologram »

Well, Zbrush uses the sculpt's outer shape at thumbnail size for the viewcube. But it's an obvious exception from a non-CAD program.
aapo
Posts: 615
Joined: Mon Oct 29, 2018 6:41 pm

Re: request for input: default for NaviCube font

Post by aapo »

wandererfan wrote: Thu Feb 02, 2023 2:55 pm Right now, I have a blank cube, so any solution would be an improvement.
Have you checked that the new font preferences for the NaviCube are reasonable/exist. In my machine the navicube works otherwise nicely when setting the prefs correctly, but when the rendered text is slanted the text becomes unreadable because of texture rendering does not have proper unisotropic filtering https://en.wikipedia.org/wiki/Anisotropic_filtering.

I would go with translatable text, trimmed to fit the available space in the same font as the rest of the UI. The font size should be adjustable for those of us whose eyes are not as strong as they used to be. If that means that I get text of "Fron" and "Righ", so be it.
I'd also prefer this. Just to note, the latest master already has adjustable cube and font sizes added by Uwe (thanks!).
User avatar
onekk
Veteran
Posts: 6146
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: request for input: default for NaviCube font

Post by onekk »

I don't care too much to have navicube show "orientation" in my language, so having a "precise indication" on what is the viewport I'm seeing is most important, why not utilize something similar to icons in the toolbar.
FC-viewport.png
FC-viewport.png (3.66 KiB) Viewed 1250 times
This is "language proof" and not ambiguos at all, maybe having in a couple of variants or colors to adapt to differente tastes should work.

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
Shalmeneser
Veteran
Posts: 9475
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: request for input: default for NaviCube font

Post by Shalmeneser »

onekk wrote: Fri Feb 03, 2023 9:05 am why not utilize something similar to icons in the toolbar.
You need TWO colored faces for complete disambiguation : eg. Front and Top
User avatar
onekk
Veteran
Posts: 6146
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: request for input: default for NaviCube font

Post by onekk »

Shalmeneser wrote: Fri Feb 03, 2023 10:58 am You need TWO colored faces for complete disambiguation : eg. Front and Top
Not necessarily, it suffice to place a mark on Top face, an international symbol like a dot or a circle will do the job.

Eventually an arrow on "Front" face pointing up?

The point is to have a "language agnostic" indication and maybe a tooltip with localized "orientation string".

But it is only an idea. This way even with fonts problems you will have a decent indication even if the tooltip will be totally messed up.

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/
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: request for input: default for NaviCube font

Post by GeneFC »

onekk wrote: Fri Feb 03, 2023 9:05 am why not utilize something similar to icons in the toolbar.
I think I need to see my eye doctor. I seem to have double vision. :lol:

viewtopic.php?p=657713#p657713

Gene
User avatar
onekk
Veteran
Posts: 6146
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: request for input: default for NaviCube font

Post by onekk »

GeneFC wrote: Fri Feb 03, 2023 2:20 pm
onekk wrote: Fri Feb 03, 2023 9:05 am why not utilize something similar to icons in the toolbar.
I think I need to see my eye doctor. I seem to have double vision. :lol:

viewtopic.php?p=657713#p657713

Gene
Probably Yes, but the idea was not to reuse the icons, only something similar, and probably with some colors.

Someone has proposed a "dice image" I was generalizing the thing, to show an image that have some meaning like those in the toolbar, that are not "unknown" to users.

But only to make something "language agnostic" to avoid problem with fonts, translation and similar.

But is it only an idea to evaluate, and maybe discuss on "what is better" or "how this can be done", without pretense to be an "optimal solution".

Just today i have seen in FreeCAD 0.21 that using this simple script will tune the visualization:

Code: Select all

import FreeCAD

fstring = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/NaviCube").GetString('FontString')
print(f'FontString: >{fstring}<')
fsize = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/NaviCube").GetInt('FontSize')
print(f'FontSize: {fsize}')

FreeCAD.ParamGet("User parameter:BaseApp/Preferences/NaviCube").SetString('FontString', 'Nimbus Sans Narrow')
FreeCAD.ParamGet("User parameter:BaseApp/Preferences/NaviCube").SetInt('FontSize', 92)
Wìth this version compiled from @adrianinsaval for Arch Linux, updated probably yesterday and Navicube was not showing text.

Code: Select all

OS: Artix Linux (openbox)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31741 (Git)
Build type: None
Branch: master
Hash: 693ec401f701d6ffa242cf63f666f091a0b2c1ca
Python 3.10.9, Qt 5.15.8, Coin 4.0.1, Vtk 9.1.0, OCC 7.6.3
Locale: English/United States (en_US) [ OS: Italian/Italy (it_IT) ]
Installed mods: 
  * fcgear 1.0.0
  * Assembly4 0.12.4
  * toSketch 1.0.1
  * Curves 0.5.8
  * Help 1.0.3
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
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: request for input: default for NaviCube font

Post by adrianinsaval »

Did you check the new navicube preferences? There might be a conflict with your previous config or something like that
User avatar
onekk
Veteran
Posts: 6146
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: request for input: default for NaviCube font

Post by onekk »

adrianinsaval wrote: Sat Feb 04, 2023 12:11 pm Did you check the new navicube preferences? There might be a conflict with your previous config or something like that
This question is adressing to me?

Yes and No, I could try to set a clean directory and check.

Test Done:

Navicube is working out of the box.ù

A minor thing this is the output of Tools >> Preferences when FreeCAD is started in the new blank dir:
test_first_start.png
test_first_start.png (58.29 KiB) Viewed 946 times
This is what is shown after having simply changed the language to the "automatically guessed" Italian to English:
test_after_language_change.png
test_after_language_change.png (66.39 KiB) Viewed 946 times
But I have not "Adobe Courier" font installed so I have to guess what font it is using in reality, probably a substitution fonts, set by FontConfig.

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
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: request for input: default for NaviCube font

Post by uwestoehr »

onekk wrote: Sat Feb 04, 2023 2:37 pm This is what is shown after having simply changed the language to the "automatically guessed" Italian to English:
But I have not "Adobe Courier"
Ouch! Windows is a tricky beast in this regards. I might have a bug in the code but that it finds non-existing fonts, is weird.

However, a new font selection should not happen since the nice "Bahnschrift" was already found. To be able to fix this, can you please give me a step by step recipe to reproduce (I could not reproduce yet here).
Post Reply