yorik wrote: ↑Wed Jan 22, 2020 9:25 am
Then I'll merge it ...
Perhaps someone else with more c++ experience should have a look at: FileDialog.cpp, Widgets.cpp, customwidgets.cpp
to apply a more general solution.
Because same problem occurs, if according property should be edited by property editor.
Thanks for the work done so far. When creating a ShapeString I now automatically get a different file dialog and I can access the Windows Font folder.
But there is an issue with the File dialog if you want to change the font of an existing ShapeString. In that case the Windows OS file dialog is still being opened. Now there is no error message, but the dialog does not show any files for the Windows Font folder.
Roy_043 wrote: ↑Fri Apr 10, 2020 1:59 pm
But there is an issue with the File dialog if you want to change the font of an existing ShapeString. In that case the Windows OS file dialog is still being opened. Now there is no error message, but the dialog does not show any files for the Windows Font folder.
Parameter Editor >BaseApp >Preferences >Dialog,
for ShapeString:
DontUseNativeFontDialog =true/false
for Menu >File >Open...
DontUseNativeDialog =ture/false
@fc_tofu:
Thanks for your answer. DontUseNativeFontDialog=True on my system. But, as can be concluded from my previous post, this setting is ignored when you try to modify an existing ShapeString.
Roy_043 wrote: ↑Sat Apr 11, 2020 4:07 pm
@fc_tofu:
Thanks for your answer. DontUseNativeFontDialog=True on my system. But, as can be concluded from my previous post, this setting is ignored when you try to modify an existing ShapeString.
Have you tried restarting FreeCAD after setting "DontUseNativeFontDialog=true" ?
Thanks. I have just tried that. But still the Windows OS file dialog is being opened when I edit the font of an existing ShapeString.
Note that on my system (I assume on all Windows systems) the DontUseNativeFontDialog=True setting is created when Draft_ShapeString is first used. So probably this setting does not require a restart. But some settings do, so it was a good idea to check this. Thanks again.
wandererfan wrote: ↑Wed Oct 09, 2019 11:18 pm
If there's a Windows user out there that hasn't messed too much with attributes, permissions, etc, on the Fonts directory, could they try the following please?
In Tools>Edit parameters, add a parameter to the Dialog section as shown in this screen grab:
WindowsPrefDialogParm.png
On my Windows box, setting this parameter to true allows access to the Windows/Fonts directory. I'm not sure my machine is a valid test environment anymore since I've set and reset the Fonts properties so often.
Thanks,
wf
I tried to do your correction but in the preference windows at dialog, I have no option to set true or false, what can I do?
In fact my provlem is that when openinf a ShapeString, after choosing a font adress, I have the message "Font file not found: file adress (but must be executed)" this in Freecad 0.18.4 64 bits under W10.
Thanks for any help.