Code: Select all
doc = FreeCAD.newDocument()
text = 'latin ไทย русский Ελληνικά 中国人'
tp = Draft.make_text(text, FreeCAD.Vector(0,0,0))
tp.Text = text
FreeCADGui.SendMsgToActiveView('ViewFit')
Code: Select all
tp.Text = text
It seems there's no problem with non-latin characters with scripting but with the GUI.
.
OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24276 (Git)
Build type: Release
Branch: releases/FreeCAD-0-19
Hash: a88db11e0a908f6e38f92bfc5187b13ebe470438
Python version: 3.8.6+
Qt version: 5.15.1
Coin version: 4.0.1
OCC version: 7.5.0
Locale: German/Germany (de_DE)