allow diagram load without gui

In gui mode, diagram will use font setting in gui main
In non-gui mode, it use default font QFont("Helvetica", 12)