[SOLVED]Numbers display as weird symbols

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!
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Numbers display as weird symbols

Post by openBrain »

Could you please provide return value of following line when entered in Python console ?

Code: Select all

Gui.getMainWindow().font()
daboga
Posts: 16
Joined: Thu Mar 26, 2020 5:03 pm

Re: Numbers display as weird symbols

Post by daboga »

openBrain wrote: Sat Mar 28, 2020 1:53 pm Could you please provide return value of following line when entered in Python console ?

Code: Select all

Gui.getMainWindow().font()
Sorry, I missed your post.
Here it is:
>>> Gui.getMainWindow().font()
<PySide2.QtGui.QFont( "MS Shell Dlg 2,8.25,-1,5,50,0,0,0,0,0" ) at 0x000002CEC7624388>

I used the Windows Registry Editor to check what font MS Shell Dlg 2 refers to: Tahoma, which looks OK to me.
To make sure, I tried to use Tahoma in Wordpad, and it displays numbers correctly.

By the way, I tried to uninstall FreeCAD, switch my Windows language from French to English, then re-install FreeCAD, to no avail.
Attachments
FontSubtitutes.PNG
FontSubtitutes.PNG (6.63 KiB) Viewed 914 times
Last edited by daboga on Tue Mar 31, 2020 1:34 pm, edited 3 times in total.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Numbers display as weird symbols

Post by Kunda1 »

daboga wrote: Fri Mar 27, 2020 8:46 am Version: 0.18.4 (GitTag)
Perhaps testing with the latest 0.19_pre version ?
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
daboga
Posts: 16
Joined: Thu Mar 26, 2020 5:03 pm

Re: Numbers display as weird symbols

Post by daboga »

Kunda1 wrote: Tue Mar 31, 2020 11:44 am
daboga wrote: Fri Mar 27, 2020 8:46 am Version: 0.18.4 (GitTag)
Perhaps testing with the latest 0.19_pre version ?
I just tried: same result.

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.20310 (Git)
Build type: Release
Branch: master
Hash: 2cac4898d7d62276fbbaaef5b4cecb9bfdd29a33
Python version: 3.8.2
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: French/Belgium (fr_BE)
UR_
Veteran
Posts: 1355
Joined: Tue Jan 03, 2017 8:42 pm

Re: Numbers display as weird symbols

Post by UR_ »

Just a guess.
Please post screenshot from windows 10 registry editor.

Key: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes

Should looks like e.g.

Screenshot 001.png
Screenshot 001.png (14.23 KiB) Viewed 920 times
daboga
Posts: 16
Joined: Thu Mar 26, 2020 5:03 pm

Re: Numbers display as weird symbols

Post by daboga »

UR_ wrote: Tue Mar 31, 2020 12:47 pm Just a guess.
Please post screenshot from windows 10 registry editor.

Key: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes

Should looks like e.g.


Screenshot 001.png
I had the same idea and I got the same result (see my previous post that I just completed)
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Numbers display as weird symbols

Post by PrzemoF »

[I'm not w windows person] Can you change tahoma to something else? Does it change the font?
daboga
Posts: 16
Joined: Thu Mar 26, 2020 5:03 pm

Re: Numbers display as weird symbols

Post by daboga »

PrzemoF wrote: Tue Mar 31, 2020 1:42 pm [I'm not w windows person] Can you change tahoma to something else? Does it change the font?
Well, I'm a bit hesitant to do that as it could affect the behaviour of Windows itself.
I'd rather try and change the font used by FreeCAD, if someone could tell me how to do that.
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: Numbers display as weird symbols

Post by kisolre »

daboga wrote: Tue Mar 31, 2020 1:50 pm it could affect the behaviour of Windows itself.
Editing windows registry is not a taboo... You can always change it back. And this is just a font. Worst thing that could happen is you see some weird symbols somewhere else.
daboga
Posts: 16
Joined: Thu Mar 26, 2020 5:03 pm

Re: Numbers display as weird symbols

Post by daboga »

kisolre wrote: Tue Mar 31, 2020 7:18 pm Editing windows registry is not a taboo...
Still don't like it but I have to agree, so I did it: replaced Tahoma by MS Sans Serif in regedit, restarted my computer, tried again... same result:
Attachments
Dlg2 as MS Sans Serif.PNG
Dlg2 as MS Sans Serif.PNG (1.58 KiB) Viewed 867 times
Post Reply