- added a status message for font parsing
This commit is contained in:
@@ -1128,7 +1128,7 @@ class App(QtCore.QObject):
|
|||||||
self.install_tools()
|
self.install_tools()
|
||||||
|
|
||||||
### System Font Parsing ###
|
### System Font Parsing ###
|
||||||
self.f_parse = ParseFont()
|
self.f_parse = ParseFont(self)
|
||||||
self.parse_system_fonts()
|
self.parse_system_fonts()
|
||||||
|
|
||||||
# test if the program was started with a script as parameter
|
# test if the program was started with a script as parameter
|
||||||
|
|||||||
@@ -182,9 +182,11 @@ class ParseFont():
|
|||||||
break
|
break
|
||||||
return name, family
|
return name, family
|
||||||
|
|
||||||
def __init__(self, parent=None):
|
def __init__(self, app, parent=None):
|
||||||
super(ParseFont, self).__init__()
|
super(ParseFont, self).__init__()
|
||||||
|
|
||||||
|
self.app = app
|
||||||
|
|
||||||
# regular fonts
|
# regular fonts
|
||||||
self.regular_f = {}
|
self.regular_f = {}
|
||||||
# bold fonts
|
# bold fonts
|
||||||
@@ -281,8 +283,9 @@ class ParseFont():
|
|||||||
elif font_type == 'regular':
|
elif font_type == 'regular':
|
||||||
path_filename = regular_dict[font_name]
|
path_filename = regular_dict[font_name]
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
self.app.inform.emit("[error_notcl] Font not supported, try another one.")
|
||||||
log.debug("[error_notcl] Font Loading: %s" % str(e))
|
log.debug("[error_notcl] Font Loading: %s" % str(e))
|
||||||
return"[ERROR] Font Loading: %s" % str(e)
|
return "flatcam font parse failed"
|
||||||
|
|
||||||
face = ft.Face(path_filename)
|
face = ft.Face(path_filename)
|
||||||
face.set_char_size(int(font_size) * 64)
|
face.set_char_size(int(font_size) * 64)
|
||||||
|
|||||||
@@ -9,6 +9,10 @@ CAD program, and create G-Code for Isolation routing.
|
|||||||
|
|
||||||
=================================================
|
=================================================
|
||||||
|
|
||||||
|
11.01.2019
|
||||||
|
|
||||||
|
- added a status message for font parsing
|
||||||
|
|
||||||
9.01.2019
|
9.01.2019
|
||||||
|
|
||||||
- added a fix to allow creating of Excellon geometry even when there are points with no tools by skipping those points and warning the user about this in a Tcl message
|
- added a fix to allow creating of Excellon geometry even when there are points with no tools by skipping those points and warning the user about this in a Tcl message
|
||||||
|
|||||||
Reference in New Issue
Block a user