font ==== .. py:module:: qfluentwidgets.common.font Module Contents --------------- .. autoapisummary:: qfluentwidgets.common.font.setFont qfluentwidgets.common.font.getFont .. py:function:: setFont(widget: PyQt5.QtWidgets.QWidget, fontSize=14, weight=QFont.Normal) set the font of widget Parameters ---------- widget: QWidget the widget to set font fontSize: int font pixel size weight: `QFont.Weight` font weight .. py:function:: getFont(fontSize=14, weight=QFont.Normal) create font Parameters ---------- fontSize: int font pixel size weight: `QFont.Weight` font weight