import matplotlib.pyplot as plt
import sys
from PyQt5.QtWidgets import QApplication, QWidget, QLabel, QVBoxLayout

app = QApplication(sys.argv)

# Print the default font
default_font = app.font()
print(f"Default font: {default_font.family()} {default_font.pointSize()}")

# Optionally, set a specific font as the default for the application
app.setFont(default_font)  # Here you can set a specific QFont object if desired

class MainWindow(QWidget):
    def __init__(self):
        super().__init__()

        layout = QVBoxLayout()
        label = QLabel("Hello, this is the default font!")
        layout.addWidget(label)

        self.setLayout(layout)

window = MainWindow()
window.show()
sys.exit(app.exec_())
