added variable font

This commit is contained in:
weckyy702
2020-12-27 16:12:22 +01:00
parent 688c4ad0ac
commit 2e70191b04
3 changed files with 23 additions and 14 deletions

View File

@@ -4,9 +4,10 @@ from interpreter.NassiShneidermann import NassiShneidermanDiagram
from draw.Iinstruction import *
def nassi(filepath:str, output_path: str, gui):
print('')
def nassi(filepath:str, output_path: str, gui, font_filepath: str=None):
NSD = NassiShneidermanDiagram(gui.debug_mode)
if font_filepath:
NSD.set_font(font_filepath)
NSD.load_from_file(filepath)
NSD.convert_to_image(output_path + "/Nassi-Shneider-Diagramm", 500)