def fonts_event(win, plot, figure, fontlab_box, fticks_box, conf):
    """
    This function change the font of the plot.
    Parameters:
    -----------
    win         FigureCanvas, obj
    plot        subplot, obj
    figure      Figure, obj
    fontlab_box QComboBox widget
    fticks_box      ''      ''
    flegend_box     ''      ''
    """
    flabel = fontlab_box.currentText()
    fticks = fticks_box.currentText()
    conf.axis['Axis_label_font'] = flabel
    conf.ticks['Ticks_label_font'] = fticks
    labx = plot.xaxis.get_label()
    laby = plot.yaxis.get_label()
    labx.set_fontname(flabel)
    laby.set_fontname(flabel)
    if fticks not in ['Goha-Tibeb Zemen']:
        labels = plot.get_xticklabels()
        for i in labels:
            i.set_fontproperties(fticks)
        labels = plot.get_yticklabels()
        for i in labels:
            i.set_fontproperties(fticks)
    figure.tight_layout()
    win.draw()
