![]() ![]() tWindowTitle("Window_fonts")ĭef on_fontComboBox(self): # 1: for QtGui.QFontComboBox(self.centralWidget) 1: tWindowFlags(.WindowStaysOnTopHint) # PySide cette fonction met la fenetre en avant # self.checkBox_1.nnect(self.on_checkBox_1_clicked) Self.checkBox_1.setObjectName(("checkBox_1")) Self.checkBox_1.setToolTip("Create text") Self.checkBox_1 = QtGui.QCheckBox(self.centralwidget) Self.PB_color = QtGui.QPushButton(self.centralwidget) Self.PB_OK = QtGui.QPushButton(self.centralwidget) Self.textEdit = QtGui.QTextEdit(self.centralwidget) Self.PB_Fonte = QtGui.QPushButton(self.centralwidget) # 3: for () Self.PB_Fonte_(self.on_PB_Fonte_expl) # "" Self.PB_Fonte_tObjectName(("PB_Fonte_expl")) Self.PB_Fonte_tFont(self.fontGlobal_08) # Self.PB_Fonte_expl = QtGui.QPushButton(self.centralwidget) # 2: for QFileDialog() Self.fontComboBox = QtGui.QFontComboBox(self.centralwidget) # 1: for QtGui.QFontComboBox() Self.centralwidget = QtGui.QWidget(MainWindow) ![]() Self.alpha = 1.0 # 1.0 = visibility max (opacity) Self.path = FreeCAD.ConfigGet("UserAppData") #self.path = FreeCAD.ConfigGet("AppHomePath") NomPolice = os.path.basename(PolicePath).split('.') PolicePath = "/usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-M.ttf" PolicePath = "C:/Windows/Fonts/ARIAL.TTF" Import Draft, Part, PartGui, FreeCADGui, FreeCADįrom math import sqrt, pi, sin, cos, asin * WARNING! All changes in this file will be lost and * ![]() * License along with this macro if not, write to the Free Software * * You should have received a copy of the GNU Library General Public * * GNU Library General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * but WITHOUT ANY WARRANTY without even the implied warranty of * * This software is distributed in the hope that it will be useful, * * the License, or (at your option) any later version. * as published by the Free Software Foundation either version 2 of * * it under the terms of the GNU Lesser General Public License (LGPL) * * This program is free software you can redistribute it and/or modify * * This file is a supplement to the FreeCAD CAx development system. Indeed, I already have Solid Edge ISO Unicode' installed whichwould be ideal. How do I find which fonts are available in FreeCADand how do I select them? I am particularly interested in using narrow fonts, eg. I have tried entering the font names exactly as listed by Windows' Control Panel > Fonts. However, the only fonts that I have been able to select are Arial, Verdana & Courier. ![]() If the given font is not found on the system, a generic one is used instead." giving the impression any of the installed fonts can be selected. The default font appears to be Times Roman and I would like to use other fonts installed on my computer. I downloaded FreeCAD and have been learning to use the Draft Workbench for some 2D drawings for a few days now. ![]()
0 Comments
Leave a Reply. |