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!
vwegert
Posts: 23
Joined: Fri Oct 30, 2020 12:04 am

Navigation Cube: text illegible

Post by vwegert »

On my mac (details below), the navigation cube in the top right looks like this:
Bildschirmfoto 2020-11-01 um 08.56.57.png
Bildschirmfoto 2020-11-01 um 08.56.57.png (12.66 KiB) Viewed 4698 times
Bildschirmfoto 2020-11-01 um 09.00.55.png
Bildschirmfoto 2020-11-01 um 09.00.55.png (13.03 KiB) Viewed 4698 times
It doesn't look too bad in the screenshots, but I have a relatively high resolution monitor. At normal viewing distance, it's very hard to identify the text.

I have not found a setting to change the font or font size of the cube - have I missed that?

I have not observed this behaviour on my Windows machine - however, that has a screen with a much lower resolution. I'm not sure what information would be needed to identify this issue. I'll include some display information from the system diagnostics (sorry, that's localized to German on my machine) - if you need more, please let me know.

OS: macOS 10.15
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22846 (Git)
Build type: Release
Branch: master
Hash: 1f46b72491a0008384a6db4f2615a656249f6f08
Python version: 3.8.6
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: C/Default (C)

U28E850:
Auflösung: 2560 x 1440 (QHD/WQHD - Wide Quad High Definition)
UI sieht aus wie: 2560 x 1440 @ 60 Hz
Framepuffertiefe: 30-Bit Farbe (ARGB2101010)
Hauptdisplay: Ja
Synchronisierung: Aus
Eingeschaltet: Ja
Rotation: Unterstützt
Helligkeit automatisch anpassen: Nein
Verbindungstyp: DVI oder HDMI
Adapter Firmware-Version: 7,55

(Note that the Display is capable of running at 3840x2160 natively, but changing to that resolution does not appear to affect the rendering of the cube.)
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Navigation Cube: text illegible

Post by Kunda1 »

This looks like HiDPi related UI tweaks. Stuff that @vanuan was working on.
vanuan wrote: pinged by pinger macro
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
User avatar
Roy_043
Veteran
Posts: 8538
Joined: Thu Dec 27, 2018 12:28 pm

Re: Navigation Cube: text illegible

Post by Roy_043 »

There are a number of preferences related to the navi cube. To my knowledge they can't be changed in the Preferences Editor yet. But there is an add-on for this: CubeMenu, that can be installed with the Std_AddonMgr command. Once installed you can access the add-on via the Mini-cube menu (click on the little cube below the main navi cube and select 'Cube menu...').
User avatar
vanuan
Posts: 539
Joined: Wed Oct 24, 2018 9:49 pm

Re: Navigation Cube: text illegible

Post by vanuan »

Kunda1 wrote: Sat Nov 07, 2020 2:14 pm This looks like HiDPi related UI tweaks. Stuff that @vanuan was working on.
vanuan wrote: pinged by pinger macro
According to the master plan, here's what the fix would entail:
  • determine the font (from the OS settings)
  • scale the font to the value that is appropriate for the navigation cube
  • make the navicube of size that fits the largest string ("bottom")
  • render the navicube by taking into account dpi and scaling (make navicube to be larger by a factor)
  • disable "dumb" autoscaling in the 3D view
Last edited by vanuan on Tue Nov 24, 2020 6:16 am, edited 1 time in total.
User avatar
vanuan
Posts: 539
Joined: Wed Oct 24, 2018 9:49 pm

Re: Navigation Cube: text illegible

Post by vanuan »

Roy_043 wrote: Wed Nov 11, 2020 3:59 pm There are a number of preferences related to the navi cube. To my knowledge they can't be changed in the Preferences Editor yet. But there is an add-on for this: CubeMenu, that can be installed with the Std_AddonMgr command. Once installed you can access the add-on via the Mini-cube menu (click on the little cube below the main navi cube and select 'Cube menu...').
The setting is here
https://github.com/FreeCAD/FreeCAD/pull/2967
User avatar
Roy_043
Veteran
Posts: 8538
Joined: Thu Dec 27, 2018 12:28 pm

Re: Navigation Cube: text illegible

Post by Roy_043 »

vanuan wrote: Sat Nov 21, 2020 6:27 am The setting is here
Not anymore. Also there are more settings now. Just have a play with the mentioned add-on.
The new location of the NaviCube settings is:
BaseApp > Preferences > NaviCube
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Navigation Cube: text illegible

Post by Kunda1 »

vanuan wrote: Sat Nov 21, 2020 6:17 am According to the master plan, here's what the fix would entail:
Thanks for the thorough reply.
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
vwegert
Posts: 23
Joined: Fri Oct 30, 2020 12:04 am

Re: Navigation Cube: text illegible

Post by vwegert »

Thanks for the information. Just to be sure I didn't miss anything: I added the Add-On, then opened the Cube Menu dialog, chose Settings, scrolled down to Navigation Cube Text, selected Font and set it to Arial Black, 96pt. (Note that the default settings dialog stops at 72pt, you have to enter 96 pt manually). This finally got me a legible text in the navigation cube - meaning I'm OK with the current state. I'm not sure whether that's a sensible default or workflow for the General User[tm]...?
jdawgaz
Posts: 7
Joined: Sun Feb 08, 2015 4:43 pm

Re: Navigation Cube: text illegible

Post by jdawgaz »

I installed the CubeMenu into the Mods directory, and I see a new menu show up when I click on the little box by the Navigator cube.

For the life of me, I cannot figure out how to get into the navigation cube preferences to change the size.
I have tried Edit->Preferences, but I don't see anything. Is there something I have to run in the python console or something?

Thanks.

I have:

OS: Linux Mint 20 (MATE/mate)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.23546 (Git) AppImage
Build type: Release
Branch: master
Hash: 6b017f9a16b15b0e628c8d874c4058442dee5548
Python version: 3.8.6
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United States (en_US)
UR_
Veteran
Posts: 1355
Joined: Tue Jan 03, 2017 8:42 pm

Re: Navigation Cube: text illegible

Post by UR_ »

jdawgaz wrote: Fri Jan 01, 2021 11:58 am ... when I click on the little box by the Navigator cube.

Please try this button:

Screenshot 001.png
Screenshot 001.png (33.91 KiB) Viewed 4010 times
Post Reply