Are you sure this is the correct font? Any idea where it is in the source? or is this the default QT5 font?
[SOLVED]Numbers display as weird symbols
Forum rules
and Helpful information
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!
Also, be nice to others! Read the FreeCAD code of conduct!
Re: Numbers display as weird symbols
AFAIK, every widget is selecting it's own font
Please see property editor from QtDesigner with any .ui file from FreeCAD.
example:
Please see property editor from QtDesigner with any .ui file from FreeCAD.
example:
Re: Numbers display as weird symbols
I don't have QtDesigner and I'd like to avoid downloading the trial version if I can.
I see that the .ui files are xml files, so I expect the font properties to be mentioned in plain text; I opened each of them in Notepad++ and I made a search on "font"; results are in attachment.
Don't hesitate to tell me if what I did doesn't make sense.
- Attachments
-
- Fonts.pdf
- (79.62 KiB) Downloaded 41 times
Re: Numbers display as weird symbols
Yeah, actually doing so doesn't make much sense.
Qt as a mechanism to get default font from the system, then propagating it through the widgets => https://doc.qt.io/qt-5/qwidget.html#font-prop
You can try to enter something like this in the Python Console to look if it improve things :
Qt as a mechanism to get default font from the system, then propagating it through the widgets => https://doc.qt.io/qt-5/qwidget.html#font-prop
You can try to enter something like this in the Python Console to look if it improve things :
Code: Select all
from PySide import QtGui
QtGui.QApplication.setFont(QtGui.QFont("Arial",10))
Last edited by openBrain on Wed Apr 01, 2020 1:38 pm, edited 1 time in total.
Re: Numbers display as weird symbols
>>> QtGui.QApplication.setFont(QtGui.QFont("Arial",10))openBrain wrote: ↑Wed Apr 01, 2020 1:25 pm You can try to enter something like this in the Python Console to look if it improve things :Code: Select all
QtGui.QApplication.setFont(QtGui.QFont("Arial",10))
Traceback (most recent call last):
File "<input>", line 1, in <module>
NameError: name 'QtGui' is not defined
Re: Numbers display as weird symbols
Nobody is perfect ... but it doesn't solve the bloody thing
No change in the weird numbers display, but I can see all texts change size (numbers included) if I change the second argument.
I also tried different fonts (MS Sans Serif, Tahoma) and I see indeed the font change in all texts, but the same issue with numbers remains.
Btw, I tried the 32-bit version of FreeCAD as well, just in case - no more success.
I since reverted to the 64 bit version (0.18)
Re: Numbers display as weird symbols
@daboga, I can't see anywhere in the thread that you have referenced the setting in this procedure: https://java.com/en/download/help/locale.xml
(I'm sure this setting has come up in the past with regard to a strange Windows display problem).
(I'm sure this setting has come up in the past with regard to a strange Windows display problem).
Re: Numbers display as weird symbols
This solved the issue -Thanks a lot! (I'd never have found it by myself)Syres wrote: ↑Wed Apr 01, 2020 2:52 pm @daboga, I can't see anywhere in the thread that you have referenced the setting in this procedure: https://java.com/en/download/help/locale.xml
(I'm sure this setting has come up in the past with regard to a strange Windows display problem).
Thanks also to all those who tried and helped !!!
Re: Numbers display as weird symbols
Just for future reference - "Language for non-Unicode programs" is the desired setting. What was yours set to?