Unfortunately the font is never found after Rhino is freshly opened. Only if i run eg. the _TextObject command before, and create something using the Arial Black font, it is then found with my script. If i then open a new file, the font is also found using FindOrCreate. But if i reopen Rhino, the font is not found again.
How to reliably locate the font and use it ? Things i’ve tried allready:
I’ve iterated over System.Drawing.Text.InstalledFontCollection().Families (slow) which lists my required font.Name as “Arial Black”. Unfortunately, this is not the proper Name to use with FindOrCreate, it only can use the font if i put an underscore between the words and do before what i’ve described above.
Do i really need to script the Rhino command as shown here ?
Note: this is R6, i try to find a way to do this reliable in R6 and R7
The following script works to create the text with the desired font, but only as curves. Please uncomment below to create the text as polysurfaces, it will crash R6:
None, i just wrote in the Error Reporting dialog that this should be forwarded to you. I have the crashdump and (empty) Rhino file zipped. It is too large (12mb) to upload here, should i upload it to your server instead ?
I am just sending a second crash dump through the Error reporting dialog. I can repeat the crash if i do this:
Run my first script as is
Comment out the code to create the curves
Uncomment the code line to call te.CreatePolySurfaces, you do not have to add the breps to the document
Hi @dale, i am not sure which difference this would make, it crashed here repeatable on the system i have to work with. Did you receive the crash reports and dump files ?
Today i’ve tested under V6 and V7 with Windows 10. No crash there.
No, please look closer. Your screen does not show Arial Black, it creates the Text with Arial. Can you show an example where it creates the Text with Arial Black which works right after Rhino has been opened ?
Did you get my crashdump ? (The one i posted here and the two i’ve uploaded ?)