Acoused: Remove 'Ubuntu' font and replace by 'DejaVu Sans' font.

dev
Pierre-Antoine 2025-04-16 14:28:37 +02:00
parent d22e41c582
commit 400fa26f84
4 changed files with 9 additions and 14 deletions

View File

@ -71,12 +71,12 @@ class AboutWindow(QDialog):
self.label_acoused = QLabel()
self.label_acoused.setText("Acoused 2.0")
self.label_acoused.setFont(QFont("Ubuntu", 14))
self.label_acoused.setFont(QFont("DejaVu Sans", 14))
self.gridLayout.addWidget(self.label_acoused, 0, 1, 1, 1, Qt.AlignCenter)
self.label_date = QLabel()
self.label_date.setText("2025.01.01")
self.label_date.setFont(QFont("Ubuntu", 12))
self.label_date.setFont(QFont("DejaVu Sans", 12))
self.gridLayout.addWidget(self.label_date, 1, 1, 1, 1, Qt.AlignCenter)
self.label_logo_INRAE = QLabel()
@ -302,5 +302,3 @@ class Authors(QDialog):
# w = AboutWindow()
# w.show()
# sys.exit(app.exec_())

View File

@ -444,15 +444,13 @@ class AcousticInversionTab(QWidget):
self.pushbutton_plot_sand_sample_choice\
.clicked.connect(self.plot_measured_vs_inverted_SSC_sand)
@trace
def full_update(self):
logger.debug(f"{__name__}: Update")
self.blockSignals(True)
self.update_acoustic_data_choice()
# TODO: Update all widgets
self.function_run_inversion()
self.blockSignals(False)

View File

@ -66,7 +66,7 @@ class PlotNoiseWindow(QDialog):
eval("self.ax" + str(i) + "[" + str(freq_ind) + "]" + ".text(1, .70, stg.freq_text[" + str(i) +
"][" + str(freq_ind) + "]," +
"fontsize=10, fontweight='bold', fontname='Ubuntu', c='black', alpha=0.5," +
"fontsize=10, fontweight='bold', fontname='DejaVu Sans', c='black', alpha=0.5," +
"horizontalalignment='right', verticalalignment='bottom'," +
"transform=self.ax" + str(i) + "[" + str(freq_ind) + "].transAxes)")
@ -91,4 +91,3 @@ class PlotNoiseWindow(QDialog):
exec("self.verticalLayout_tab" + str(i) + ".addWidget(self.toolbar" + str(i) + ")")
exec("self.verticalLayout_tab" + str(i) + ".addWidget(self.scroll" + str(i) + ")")

View File

@ -648,7 +648,7 @@ class SedimentCalibrationTab(QWidget):
self.label_FCB_explanation_alphas_positive.setText(
"&alpha;<sub>s FCB</sub> &gt; 0 : comparison with calibration"
)
self.label_FCB_explanation_alphas_positive.setFont(QFont('Ubuntu', 12))
self.label_FCB_explanation_alphas_positive.setFont(QFont('DejaVu Sans', 12))
self.gridLayout_groupbox_FCB_text_alphas.addWidget(
self.label_FCB_explanation_alphas_positive,
0, 1, 1, 1, Qt.AlignLeft
@ -669,7 +669,7 @@ class SedimentCalibrationTab(QWidget):
self.label_FCB_explanation_alphas_negative.setText(
"&alpha;<sub>s FCB</sub> &lt; 0 : do not compare with calibration"
)
self.label_FCB_explanation_alphas_negative.setFont(QFont('Ubuntu', 12))
self.label_FCB_explanation_alphas_negative.setFont(QFont('DejaVu Sans', 12))
self.gridLayout_groupbox_FCB_text_alphas.addWidget(
self.label_FCB_explanation_alphas_negative,
1, 1, 1, 1, Qt.AlignLeft
@ -736,7 +736,7 @@ class SedimentCalibrationTab(QWidget):
self.label_alphaS_FCB.setText(
"&alpha;<sub>s</sub> = " + "0.0" + "dB/m"
)
self.label_alphaS_FCB.setFont(QFont("Ubuntu", 14, QFont.Normal))
self.label_alphaS_FCB.setFont(QFont("DejaVu Sans", 14, QFont.Normal))
self.gridLayout_groupbox_FCB_compute.addWidget(
self.label_alphaS_FCB, 2, 4, 1, 2
)
@ -2622,7 +2622,7 @@ class SedimentCalibrationTab(QWidget):
self.axis_FCB.text(.95, .05,
stg.freq_text[self.combobox_acoustic_data_choice.currentIndex()][
self.combobox_frequency_FCB.currentIndex()],
fontsize=10, fontweight='bold', fontname="Ubuntu",
fontsize=10, fontweight='bold', fontname="DejaVu Sans",
fontstyle="normal", c="black", alpha=0.2,
horizontalalignment='right', verticalalignment='bottom',
transform=self.axis_FCB.transAxes)
@ -2658,7 +2658,7 @@ class SedimentCalibrationTab(QWidget):
self.axis_FCB.text(.95, .05,
stg.freq_text[self.combobox_acoustic_data_choice.currentIndex()][
self.combobox_frequency_FCB.currentIndex()],
fontsize=10, fontweight='bold', fontname="Ubuntu",
fontsize=10, fontweight='bold', fontname="DejaVu Sans",
fontstyle="normal", c="black", alpha=0.2,
horizontalalignment='right', verticalalignment='bottom',
transform=self.axis_FCB.transAxes)